Component Testing for Java
The TestResult object is used to produce dynamic test results during the execution of a TestCase or TestSuite. The TestResult class offers the same behavior in J2SE and J2ME.
TestResult provides the following methods:
verifyCount(): Returns the number of failed verify calls during test execution.
errorCount(): Returns the number of errors (unexpected exceptions) encountered during test execution.
failureCount(): Returns the number of failed assert calls during test execution.
Related Topics
Using the TestCase Class | Using the TestSuite Class | J2ME Specifics