use of org.junit.runner.JUnitCore in project drools by kiegroup.
the class TestServiceImpl method run.
@Override
public void run(Scenario scenario, Map<String, KieSession> ksessions, TypeResolver resolver, RunListener listener) {
try {
long time = System.nanoTime();
// execute the test scenario
ScenarioRunner4JUnit runner = new ScenarioRunner4JUnit(scenario, ksessions);
JUnitCore junit = new JUnitCore();
junit.addListener(listener);
junit.run(runner);
Result result = new Result();
listener.testRunFinished(result);
} catch (Exception e) {
reportUnrecoverableError("Error running scenario " + scenario.getName(), listener, e);
}
}
use of org.junit.runner.JUnitCore in project jna by java-native-access.
the class WininetTest method main.
public static void main(String[] args) {
JUnitCore jUnitCore = new JUnitCore();
jUnitCore.run(WininetTest.class);
}
use of org.junit.runner.JUnitCore in project jna by java-native-access.
the class WininetUtilTest method main.
public static void main(String[] args) {
JUnitCore jUnitCore = new JUnitCore();
jUnitCore.run(WininetUtilTest.class);
}
use of org.junit.runner.JUnitCore in project junit4 by junit-team.
the class ResultTest method testRunSuccessResultCanBeSerialised.
public void testRunSuccessResultCanBeSerialised() throws Exception {
JUnitCore runner = new JUnitCore();
Result result = runner.run(Success.class);
assertResultSerializable(result);
}
use of org.junit.runner.JUnitCore in project junit4 by junit-team.
the class ResultTest method testRunFailureResultCanBeSerialised.
public void testRunFailureResultCanBeSerialised() throws Exception {
JUnitCore runner = new JUnitCore();
Result result = runner.run(AnnotationTest.FailureTest.class);
assertResultSerializable(result);
}
Aggregations