public void run(STClass[] classes, STEngine[] engines, boolean a_quiet) { begin(); setSodaTestOn(classes); for (int i = 0; i < engines.length; i++) { engine = engines[i]; engine.reset(); engine.open(); store(classes); engine.commit(); engine.close(); engine.open(); test(classes); engine.close(); engine.reset(); } if (failedTestClasses.size() > 0) { System.err.println("\nFailed test classes:\n"); Iterator4 i = failedTestClasses.iterator(); while (i.moveNext()) { System.err.println(i.current().getClass().getName()); } System.err.println("\n"); } }
public void error(String msg) { if (!failedTestClasses.contains(currentTestClass)) { failedTestClasses.add(currentTestClass); } if (!quiet) { System.err.println(msg); new ExpectationFailed().printStackTrace(); System.err.println(); } }
public static int failedClassesSize() { return failedTestClasses.size(); }