KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > junit > go > test > AlfaTest


1 /*
2  * AlfaTest.java
3  * JUnit based test
4  *
5  * Created on February 7, 2007, 11:26 AM
6  */

7
8 package org.netbeans.test.junit.go.test;
9
10 import junit.framework.Test;
11 import junit.framework.TestCase;
12 import junit.framework.TestSuite;
13
14 /**
15  *
16  * @author ms159439
17  */

18 public class AlfaTest extends TestCase {
19     
20     public AlfaTest(String JavaDoc testName) {
21         super(testName);
22     }
23     
24     public static Test suite() {
25         TestSuite suite = new TestSuite(AlfaTest.class);
26
27         return suite;
28     }
29
30     protected void setUp() throws Exception JavaDoc {
31         super.setUp();
32     }
33
34     protected void tearDown() throws Exception JavaDoc {
35         super.tearDown();
36     }
37
38     public void testHello() {
39         System.out.println("hello");
40         String JavaDoc name = "";
41         Alfa instance = new Alfa();
42         String JavaDoc expResult = "";
43         String JavaDoc result = instance.hello(name);
44
45         assertEquals(expResult, result);
46         fail("The test case is a prototype.");
47     }
48
49 }
50
Popular Tags