KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junitx > example > IgnoredTestCase


1 package junitx.example;
2
3 import junit.framework.TestCase;
4 import junitx.framework.Ignored;
5
6 /**
7  * @version $Revision: 1.3 $, $Date: 2003/05/08 02:51:15 $
8  * @author <a HREF="mailto:vbossica@users.sourceforge.net">Vladimir Ritz Bossicard</a>
9  */

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 JavaDoc();
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