use of junit.framework.TestResult in project android_frameworks_base by crdroidandroid.
the class TestSuiteBuilderTest method runSuite.
private SuiteExecutionRecorder runSuite(TestSuiteBuilder builder) {
TestSuite suite = builder.build();
SuiteExecutionRecorder recorder = new SuiteExecutionRecorder();
TestResult result = new TestResult();
result.addListener(recorder);
suite.run(result);
return recorder;
}
use of junit.framework.TestResult in project android_frameworks_base by crdroidandroid.
the class InstrumentationTestSuiteBuilderTest method runSuite.
private SuiteExecutionRecorder runSuite(TestSuiteBuilder builder) {
TestSuite suite = builder.build();
SuiteExecutionRecorder recorder = new SuiteExecutionRecorder();
TestResult result = new TestResult();
result.addListener(recorder);
suite.run(result);
return recorder;
}
use of junit.framework.TestResult in project android_frameworks_base by crdroidandroid.
the class UnitTestSuiteBuilderTest method runSuite.
private SuiteExecutionRecorder runSuite(TestSuiteBuilder builder) {
TestSuite suite = builder.build();
SuiteExecutionRecorder recorder = new SuiteExecutionRecorder();
TestResult result = new TestResult();
result.addListener(recorder);
suite.run(result);
return recorder;
}
use of junit.framework.TestResult in project tomee by apache.
the class TestRunner method start.
public TestResult start(final String[] args) throws Exception {
TestResult result = null;
try {
TestManager.init(null);
TestManager.start();
} catch (final Exception e) {
System.out.println("Cannot initialize the test environment: " + e.getClass().getName() + " " + e.getMessage());
e.printStackTrace();
// System.exit(-1);
throw e;
}
try {
result = super.start(args);
} catch (final Exception ex) {
} finally {
try {
TestManager.stop();
} catch (final Exception e) {
// ignore it
;
}
}
// System.exit(0);
return result;
}
use of junit.framework.TestResult in project platform_frameworks_base by android.
the class InstrumentationTestSuiteBuilderTest method runSuite.
private SuiteExecutionRecorder runSuite(TestSuiteBuilder builder) {
TestSuite suite = builder.build();
SuiteExecutionRecorder recorder = new SuiteExecutionRecorder();
TestResult result = new TestResult();
result.addListener(recorder);
suite.run(result);
return recorder;
}
Aggregations