KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > junit > testresults > test > TestSuccessTest


1 /*
2  * TestSuccessTest.java
3  * JUnit based test
4  *
5  * Created on September 27, 2006, 2:41 PM
6  */

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

17 public class TestSuccessTest extends TestCase {
18     
19     public TestSuccessTest(String JavaDoc testName) {
20         super(testName);
21     }
22     
23     protected void setUp() throws Exception JavaDoc {
24     }
25     
26     protected void tearDown() throws Exception JavaDoc {
27     }
28     
29     public static Test suite() {
30         junit.framework.TestSuite suite =
31                 new junit.framework.TestSuite(TestSuccessTest.class);
32         return suite;
33     }
34     /**
35      * Test of True method, of class org.netbeans.test.junit.testresults.test.TestSuccess.
36      */

37     public void testTrue() {
38         System.out.println("True");
39         
40         TestSuccess instance = new TestSuccess();
41         
42         boolean expResult = true;
43         boolean result = instance.True();
44         assertEquals(expResult, result);
45     }
46     
47     /**
48      * Test of False method, of class org.netbeans.test.junit.testresults.test.TestSuccess.
49      */

50     public void testFalse() {
51         System.out.println("False");
52         
53         TestSuccess instance = new TestSuccess();
54         
55         boolean expResult = false;
56         boolean result = instance.False();
57         assertEquals(expResult, result);
58     }
59     
60 }
61
Popular Tags