1 package junitx.example; 2 3 import junit.framework.TestCase; 4 5 9 public class SetupErrorTestCase extends TestCase { 10 11 protected void setUp() { 12 throw new NullPointerException (); 13 } 14 15 public void testFailure() { 16 fail(); 17 } 18 19 public void testError() { 20 throw new NullPointerException (); 21 } 22 23 public void testSuccess() { 24 } 25 26 } 27 | Popular Tags |