Clover coverage report - Drools - 2.0-rc2
Coverage timestamp: Wed May 11 2005 07:12:26 BST
file stats: LOC: 154   Methods: 21
NCLOC: 88   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
MockWorkingMemory.java - 30.8% 28.6% 29.4%
coverage coverage
 1    package org.drools;
 2   
 3    import java.util.Collections;
 4    import java.util.HashMap;
 5    import java.util.List;
 6    import java.util.Map;
 7   
 8    import org.drools.event.WorkingMemoryEventListener;
 9    import org.drools.spi.AgendaFilter;
 10    import org.drools.spi.AsyncExceptionHandler;
 11   
 12    public class MockWorkingMemory implements WorkingMemory
 13    {
 14    private Map appData = new HashMap( );
 15   
 16    /**
 17    * add event listener to listeners ArrayList
 18    *
 19    * @param listener
 20    */
 21  0 public void addEventListener(WorkingMemoryEventListener listener)
 22    {
 23    //do nothing
 24    }
 25   
 26    /**
 27    * remove event listener from listeners ArrayList
 28    *
 29    * @param listener
 30    */
 31  0 public void removeEventListener(WorkingMemoryEventListener listener)
 32    {
 33    //do nothing
 34    }
 35   
 36    /**
 37    * Returns a read-only list of listeners
 38    *
 39    * @return listeners
 40    */
 41  0 public List getEventListeners()
 42    {
 43  0 return null;
 44    }
 45   
 46    /**
 47    * Retrieve all of the set application data in this memory
 48    *
 49    * @return the application data as a Map
 50    */
 51  85 public Map getApplicationDataMap()
 52    {
 53  85 return Collections.unmodifiableMap( appData );
 54    }
 55   
 56    /**
 57    * Set a specific piece of application data in this working memory
 58    *
 59    * @param name the name under which to populate the data
 60    * @param value the application data
 61    */
 62  12 public void setApplicationData(String name, Object value)
 63    {
 64  12 appData.put( name, value );
 65    }
 66   
 67    /**
 68    * Retrieve a specific piece of application data by name
 69    *
 70    * @return application data or null if nothing is set under this name
 71    */
 72  3 public Object getApplicationData(String name)
 73    {
 74  3 return appData.get( name );
 75    }
 76   
 77    /**
 78    * Clear the Agenda
 79    */
 80  0 public void clearAgenda()
 81    {
 82    //
 83    }
 84   
 85  0 public RuleBase getRuleBase()
 86    {
 87  0 return null;
 88    }
 89   
 90  0 public void fireAllRules() throws FactException
 91    {
 92    //
 93    }
 94   
 95  0 public void fireAllRules( AgendaFilter agendaFilter ) throws FactException
 96    {
 97    //
 98    }
 99   
 100  0 public Object getObject(FactHandle handle) throws NoSuchFactObjectException
 101    {
 102  0 return null;
 103    }
 104   
 105  0 public FactHandle getFactHandle(Object object) throws NoSuchFactHandleException
 106    {
 107  0 return null;
 108    }
 109   
 110  0 public List getObjects()
 111    {
 112  0 return null;
 113    }
 114   
 115  0 public List getObjects(Class cls)
 116    {
 117  0 return null;
 118    }
 119   
 120  0 public List getFactHandles()
 121    {
 122  0 return null;
 123    }
 124   
 125  0 public boolean containsObject(FactHandle handle)
 126    {
 127  0 return false;
 128    }
 129   
 130  6 public FactHandle assertObject(Object object) throws FactException
 131    {
 132  6 return null;
 133    }
 134   
 135  0 public FactHandle assertObject(Object object, boolean dynamic) throws FactException
 136    {
 137  0 return null;
 138    }
 139   
 140  3 public void retractObject(FactHandle handle) throws FactException
 141    {
 142    //
 143    }
 144   
 145  3 public void modifyObject(FactHandle handle, Object object) throws FactException
 146    {
 147    //
 148    }
 149   
 150  0 public void setAsyncExceptionHandler(AsyncExceptionHandler handler)
 151    {
 152   
 153    }
 154    }