public class ScenarioRunnerWrapper {
public void run(Scenario scenario, KieSession ksession, Event<TestResultMessage> testResultMessageEvent) {
try {
ScenarioRunner4JUnit scenarioRunner = new ScenarioRunner4JUnit(
scenario,
ksession);
scenarioRunner.run(new CustomJUnitRunNotifier(testResultMessageEvent));
} catch (InitializationError initializationError) {
throw new GenericPortableException(initializationError.getMessage());
}
}