Method Summary |
|
public synchronized void | addError(Test test, Throwable t) |
public synchronized void | addFailure(Test test, AssertionFailedError t) |
protected TestResult | createTestResult() Creates the TestResult to be used for the test run. |
public TestResult | doRun(Test suite, boolean wait) |
public void | endTest(Test test) |
public void | fileErrors(TestResult result) |
public void | fileFailures(TestResult result) |
public void | fileHeader(TestResult result) |
protected BufferedWriter | fileWriter() |
public synchronized void | print(TestResult result) |
public static TestResult | run(Test suite) overwritten run method which also logs errors to a file Runs a single
test and collects its results. |
public static void | run(Class testClass) Runs a suite extracted from a TestCase subclass. |
public static void | runAndWait(Test suite) overwritten runAndWait method Runs a single test and waits until the user
types RETURN. |
public synchronized void | startTest(Test test) |