}
public void testFailure() {
ExceptionTestCase test= new ThrowRuntimeExceptionTestCase("test", IndexOutOfBoundsException.class);
TestResult result= test.run();
assertEquals(1, result.runCount());
assertEquals(1, result.errorCount());
}
public void testNoException() {
ExceptionTestCase test= new ThrowNoExceptionTestCase("test", Exception.class);
TestResult result= test.run();
assertEquals(1, result.runCount());