1 package junitx.example; 2 3 import junit.framework.TestCase; 4 import junitx.framework.Ignored; 5 6 10 public class IgnoredTestCase extends TestCase { 11 12 public void testFailure_ignored() { 13 fail(); 14 } 15 16 public void testError_ignored() { 17 throw new NullPointerException (); 18 } 19 20 public void testSuccess_ignored() { 21 } 22 23 public void testDynamicIgnored() { 24 throw new Ignored("dynamically ignoring the test"); 25 } 26 27 } 28 | Popular Tags |