List of usage examples for junit.textui TestRunner run
static public TestResult run(Test test)
From source file:it.cnr.icar.eric.client.xml.registry.SecureSessionPerformanceTest.java
public static void main(String[] args) { System.out.println("Get into the program...\n"); try {//w w w . jav a2 s .c o m TestRunner.run(suite()); } catch (Throwable t) { System.out.println("Throwable: " + t.getClass().getName() + " Message: " + t.getMessage()); t.printStackTrace(); } }
From source file:net.sf.classifier4J.DefaultTokenizerTest.java
public static void main(String[] args) throws Exception { TestRunner.run(DefaultTokenizerTest.class); }
From source file:net.sf.classifier4J.bayesian.WordProbabilityTest.java
public static void main(String[] args) throws Exception { TestRunner.run(WordProbabilityTest.class); }
From source file:it.cnr.icar.eric.client.xml.registry.infomodel.RegistryPackageTest.java
public static void main(String[] args) { try {// w w w. j ava2s . c om TestRunner.run(suite()); } catch (Throwable t) { System.out.println("Throwable: " + t.getClass().getName() + " Message: " + t.getMessage()); t.printStackTrace(); } }
From source file:net.sf.classifier4J.bayesian.BayesianClassifierTest.java
public static void main(String[] args) throws Exception { TestRunner.run(BayesianClassifierTest.class); }
From source file:org.callimachusproject.rdfa.test.RDFaGenerationTest.java
public static void main(String[] args) { try {//from w ww . j a v a 2 s .co m for (int i = 0; i < args.length; i++) { String arg = args[i]; if (arg.equals("-verbose")) verbose = true; // just show the generated queries (don't run the test) else if (arg.equals("-rdf")) show_rdf = true; else if (arg.equals("-sparql")) show_sparql = true; else if (arg.equals("-xml")) show_xml = true; else if (arg.equals("-results")) show_results = true; //else if (arg.equals("-legacy")) test_set = "legacy"; //else if (arg.equals("-construct")) test_set = "construct"; else if (arg.equals("-select")) test_set = "select"; //else if (arg.equals("-fragment")) test_set = "fragment"; else if (arg.equals("-data")) test_set = "data"; else if (!arg.startsWith("-")) test_dir = arg; } // run the dynamically generated test-cases System.exit(TestRunner.run(RDFaGenerationTest.suite()).wasSuccessful() ? 0 : 1); } catch (Exception e) { e.printStackTrace(); } }
From source file:org.acmsl.queryj.tools.PackageUtilsTest.java
/** * Executes the tests from command line. * @param args the command-line arguments. Not needed so far. *//*from w w w.ja v a 2s.com*/ public static void main(@NotNull final String args[]) { TestRunner.run(PackageUtilsTest.class); }
From source file:org.apache.camel.component.xmpp.XmppRouteTest.java
public static void main(String[] args) { enabled = true;//from www . j av a 2s . c o m if (args.length > 0) { xmppUrl = args[0]; } TestRunner.run(XmppRouteTest.class); }
From source file:org.apache.hadoop.hbase.DFSAbort.java
/** * @param args unused/* w w w . java 2s . co m*/ */ public static void main(@SuppressWarnings("unused") String[] args) { TestRunner.run(new TestSuite(DFSAbort.class)); }
From source file:org.apache.hadoop.hbase.mapred.TestTableIndex.java
/** * @param args unused/*from w w w . ja v a 2s. c o m*/ */ public static void main(String[] args) { TestRunner.run(new TestSuite(TestTableIndex.class)); }