3334353637383940414243
}; TestSetup wrapper = new TestSetup(test); TestResult result = new TestResult(); wrapper.run(result); assertTrue(!result.wasSuccessful()); } public void testRunningErrorsInTestSetup() { TestCase failure = new TestCase("failure") {
5960616263646566676869
suite.addTest(error); TestSetup wrapper = new TestSetup(suite); TestResult result = new TestResult(); wrapper.run(result); assertEquals(1, result.failureCount()); assertEquals(1, result.errorCount()); }
9293949596979899100101102
fail(); } }; TestResult result = new TestResult(); wrapper.run(result); assertTrue(!test.fWasRun); assertTrue(!result.wasSuccessful()); } }
3233343536373839404142
}; TestSetup wrapper= new TestSetup(test); TestResult result= new TestResult(); wrapper.run(result); assertTrue(!result.wasSuccessful()); } public void testRunningErrorsInTestSetup() { TestCase failure= new TestCase("failure") { @Override
5758596061626364656667
suite.addTest(error); TestSetup wrapper= new TestSetup(suite); TestResult result= new TestResult(); wrapper.run(result); assertEquals(1, result.failureCount()); assertEquals(1, result.errorCount()); } public void testSetupErrorDontTearDown() {
8889909192939495969798
fail(); } }; TestResult result= new TestResult(); wrapper.run(result); assertTrue(!test.fWasRun); assertTrue(!result.wasSuccessful()); } }