use of junit.framework.JUnit4TestAdapter in project cucumber-jvm by cucumber.
the class SanityChecker method run.
public static void run(Class<?> testClass, boolean debug) {
JUnit4TestAdapter testAdapter = new JUnit4TestAdapter(testClass);
TestResult result = new TestResult();
SanityChecker listener = new SanityChecker();
result.addListener(listener);
testAdapter.run(result);
String output = listener.getOutput();
if (output.contains(INSANITY)) {
throw new RuntimeException("Something went wrong\n" + output);
}
if (debug) {
System.out.println("===== " + testClass.getName());
System.out.println(output);
System.out.println("=====");
}
}
use of junit.framework.JUnit4TestAdapter in project jena by apache.
the class TestSPARQLUpdate method suite.
public static junit.framework.TestSuite suite() {
TestSuite ts = new TestSuite();
ts.addTest(new JUnit4TestAdapter(TestSPARQLUpdate.class));
return ts;
}
use of junit.framework.JUnit4TestAdapter in project jena by apache.
the class TestSPARQLUpdateMgt method suite.
public static TestSuite suite() {
TestSuite ts = new TestSuite();
ts.addTest(new JUnit4TestAdapter(TestSPARQLUpdateMgt.class));
return ts;
}
use of junit.framework.JUnit4TestAdapter in project jena by apache.
the class ARQTestSuite method suite.
public static TestSuite suite() {
// We have to do things JUnit3 style in order to
// have scripted tests, which use JUnit3-style dynamic test building.
// This does not seem to be possible in org.junit.*
TestSuite ts = new ARQTestSuite();
// No warnings (e.g. bad lexical forms).
BaseTest2.setTestLogging();
// ARQ dependencies
ts.addTest(new JUnit4TestAdapter(TC_Atlas_ARQ.class));
ts.addTest(new JUnit4TestAdapter(TC_Common.class));
ts.addTest(new JUnit4TestAdapter(TC_Riot.class));
ts.addTest(new JUnit4TestAdapter(TS_Web.class));
ts.addTest(new JUnit4TestAdapter(TS_System.class));
// Main ARQ internal test suite.
ts.addTest(new JUnit4TestAdapter(TC_General.class));
ts.addTest(TC_Scripted.suite());
ts.addTest(TC_DAWG.suite());
// Fiddle around with the config if necessary
if (false) {
QueryEngineMain.unregister();
QueryEngineRef.register();
}
return ts;
}
use of junit.framework.JUnit4TestAdapter in project alfresco-remote-api by Alfresco.
the class CMMApiTestSuite method suite.
/**
* Creates the test suite
*
* @return the test suite
*/
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new JUnit4TestAdapter(TestCustomModel.class));
suite.addTest(new JUnit4TestAdapter(TestCustomTypeAspect.class));
suite.addTest(new JUnit4TestAdapter(TestCustomProperty.class));
suite.addTest(new JUnit4TestAdapter(TestCustomConstraint.class));
suite.addTest(new JUnit4TestAdapter(TestCustomModelExport.class));
return suite;
}
Aggregations