MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

onjava/atunit/AtUnit.java:20–35  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

18 static long testsRun = 0;
19 static long failures = 0;
20 public static void
21 main(String[] args) throws Exception {
22 ClassLoader.getSystemClassLoader()
23 .setDefaultAssertionStatus(true); // Enable assert
24 new ProcessFiles(new AtUnit(), "class").start(args);
25 if(failures == 0)
26 System.out.println("OK (" + testsRun + " tests)");
27 else {
28 System.out.println("(" + testsRun + " tests)");
29 System.out.println(
30 "\n>>> " + failures + " FAILURE" +
31 (failures > 1 ? "S" : "") + " <<<");
32 for(String failed : failedTests)
33 System.out.println(" " + failed);
34 }
35 }
36 @Override public void process(File cFile) {
37 try {
38 String cName = ClassNameFinder.thisClass(

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected