|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.tools.test.ExecutionTester
public class ExecutionTester
Utility class for ensuring that model's fire correctly
| Constructor Summary | |
|---|---|
ExecutionTester()
|
|
| Method Summary | |
|---|---|
void |
exceptionCaught(java.lang.Throwable thrown)
called by the model listener so that Junit tests can handle the exception gracefully |
java.util.Collection<java.lang.Throwable> |
test(java.net.URL url,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> productionSequenceMap,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> failedProductionMap)
test run. |
java.util.Collection<java.lang.Throwable> |
test(java.net.URL url,
java.lang.String modelName,
java.util.Collection<java.lang.String> productionSequence,
java.util.Collection<java.lang.String> failedProductions)
|
void |
verifyModelState(org.jactr.core.model.IModel model,
org.jactr.core.production.IInstantiation instantiation)
this can be overriden if you want to check the state of the model just after a production has fired |
void |
verifyThatProductionShouldFire(org.jactr.core.model.IModel model,
org.jactr.core.production.IInstantiation instantiation)
called by the proceduralModuleListener after each production fires |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionTester()
| Method Detail |
|---|
public void exceptionCaught(java.lang.Throwable thrown)
thrown -
public final void verifyThatProductionShouldFire(org.jactr.core.model.IModel model,
org.jactr.core.production.IInstantiation instantiation)
model - instantiation -
public void verifyModelState(org.jactr.core.model.IModel model,
org.jactr.core.production.IInstantiation instantiation)
model -
public java.util.Collection<java.lang.Throwable> test(java.net.URL url,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> productionSequenceMap,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> failedProductionMap)
url - of the environment fileproductionSequenceMap - keyed on model name, a sequence of productions that should firefailedProductionMap - keyed on model name, a set of productions that should never fire
public java.util.Collection<java.lang.Throwable> test(java.net.URL url,
java.lang.String modelName,
java.util.Collection<java.lang.String> productionSequence,
java.util.Collection<java.lang.String> failedProductions)
url - modelName - not nullproductionSequence - not null or emptyfailedProductions - not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||