|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.testframework.ScenarioRunner
public class ScenarioRunner
This actually runs the test scenarios.
Constructor Summary | |
---|---|
ScenarioRunner(Scenario scenario,
org.drools.base.TypeResolver resolver,
org.drools.common.InternalWorkingMemory wm)
This constructor is normally used by Guvnor for running tests on a users request. |
|
ScenarioRunner(String xml,
org.drools.RuleBase ruleBase)
Use this constructor if you have a scenario in a file, for instance. |
Method Summary | |
---|---|
HashSet<String> |
getImports(org.drools.rule.Package aPackage)
|
boolean |
wasSuccess()
True if the scenario was run with 100% success. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScenarioRunner(Scenario scenario, org.drools.base.TypeResolver resolver, org.drools.common.InternalWorkingMemory wm) throws ClassNotFoundException
scenario
- The scenario to run.resolver
- A populated type resolved to be used to resolve the types in
the scenario.
For info on how to invoke this, see
ContentPackageAssemblerTest.testPackageWithRuleflow in guvnor-webapp This
requires that the classloader for the thread context be set
appropriately. The PackageBuilder can provide a suitable TypeResolver for
a given package header, and the Package config can provide a classloader.
ClassNotFoundException
public ScenarioRunner(String xml, org.drools.RuleBase ruleBase) throws ClassNotFoundException
ClassNotFoundException
Method Detail |
---|
public HashSet<String> getImports(org.drools.rule.Package aPackage)
public boolean wasSuccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |