InterviewSolution
| 1. |
What Is The Purpose Of Org.junit.testresult Class? |
|
Answer» 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. 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. |
|