Drools Guvnor - Test Scenarios Model 6.0.0.Beta2

org.drools.guvnor.models.testscenarios.backend
Class ScenarioRunner

java.lang.Object
  extended by 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.
 
Method Summary
 void run(Scenario scenario)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

run

public void run(Scenario scenario)
         throws ClassNotFoundException,
                IllegalAccessException,
                InstantiationException,
                InvocationTargetException,
                NoSuchMethodException
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NoSuchMethodException

Drools Guvnor - Test Scenarios Model 6.0.0.Beta2

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.