1 package test.junit; 2 3 import junit.framework.TestCase; 4 5 public class SetUpExceptionSampleTest extends TestCase { 6 7 @Override 8 protected void setUp() throws Exception { 9 throw new RuntimeException(); 10 } 11 12 public void testM1() { 13 } 14 15 @Override 16 protected void tearDown() throws Exception { 17 } 18 19 }