KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > a > a1 > CUTest


1 package a.a1;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5 import junit.framework.TestSuite;
6
7 /**
8  * Simple tests for the C class.
9  *
10  * @author Matt Albrecht <a HREF="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
11  * @version $Date: 2004/04/20 23:40:19 $
12  * @since December 17, 2003
13  */

14 public class CUTest extends TestCase
15 {
16     private static final Class JavaDoc THIS_CLASS = CUTest.class;
17     
18     public CUTest( String JavaDoc name )
19     {
20         super( name );
21     }
22
23
24     //-------------------------------------------------------------------------
25
// Tests
26

27     public void testReturnTrue()
28     {
29         C c = new C();
30         assertTrue( c.returnTrue() );
31     }
32     
33     
34     //-------------------------------------------------------------------------
35
// Standard JUnit declarations
36

37     
38     public static Test suite()
39     {
40         TestSuite suite = new TestSuite( THIS_CLASS );
41         
42         return suite;
43     }
44 }
45
46
Popular Tags