TestResult extends java.lang.Object A TestResult collects the results of executing a test case. It is an instance of the Collecting Parameter pattern. The test framework distinguishes between failures and errors . A failure is anticipated and checked for with assertions.
Errors are unanticipated problems like an ArrayIndexOutOfBoundsException .
Adds an error to the list of errors. Informs the result that a test was completed. Gets the number of detected failures. Runs a TestCase. Runs a TestCase.