- All Implemented Interfaces:
- junit.framework.Test
- Enclosing class:
- TestCaseTools
public static class TestCaseTools.SingleInstanceTestSuite
extends junit.framework.TestSuite
This is a special version of TestSuite that fixes, once and for
all, the irritating design of JUnit to invoke the constructor
multiple times on a test class. This operates as follows:
construct an instance of the test class in inst
try {
for each test method
method.invoke( inst ) ;
} catch ... {
} finally {
invoke post method (if any)
}