01: package test.junit;
02:
03: import junit.framework.TestCase;
04:
05: public class SetUpExceptionSampleTest extends TestCase {
06:
07: @Override
08: protected void setUp() throws Exception {
09: throw new RuntimeException();
10: }
11:
12: public void testM1() {
13: }
14:
15: @Override
16: protected void tearDown() throws Exception {
17: }
18:
19: }
|