| 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( |