org.drools.guvnor.models.testscenarios.backend
Class ScenarioRunner
java.lang.Object
org.drools.guvnor.models.testscenarios.backend.ScenarioRunner
public class ScenarioRunner
- extends Object
This actually runs the test scenarios.
|
Constructor Summary |
ScenarioRunner(org.kie.api.runtime.KieSession ksession)
This constructor is normally used by Guvnor for running tests on a users
request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScenarioRunner
public ScenarioRunner(org.kie.api.runtime.KieSession ksession)
throws ClassNotFoundException
- This constructor is normally used by Guvnor for running tests on a users
request.
- Parameters:
ksession - 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.
- Throws:
ClassNotFoundException
run
public void run(Scenario scenario)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException,
InvocationTargetException,
NoSuchMethodException
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NoSuchMethodException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.