KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junitx > example > SetupFailTestCase


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

9 public class SetupFailTestCase extends TestCase {
10
11     protected void setUp() {
12         fail();
13     }
14
15     public void testFailure() {
16         fail();
17     }
18
19     public void testError() {
20         throw new NullPointerException JavaDoc();
21     }
22
23     public void testSuccess() {
24     }
25
26 }
27
Popular Tags