01: /*
02: * TestSuccessTest.java
03: * JUnit based test
04: *
05: * Created on September 27, 2006, 2:41 PM
06: */
07:
08: package org.netbeans.test.junit.testresults.test;
09:
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 testName) {
20: super (testName);
21: }
22:
23: protected void setUp() throws Exception {
24: }
25:
26: protected void tearDown() throws Exception {
27: }
28:
29: public static Test suite() {
30: junit.framework.TestSuite suite = new junit.framework.TestSuite(
31: TestSuccessTest.class);
32: return suite;
33: }
34:
35: /**
36: * Test of True method, of class org.netbeans.test.junit.testresults.test.TestSuccess.
37: */
38: public void testTrue() {
39: System.out.println("True");
40:
41: TestSuccess instance = new TestSuccess();
42:
43: boolean expResult = true;
44: boolean result = instance.True();
45: assertEquals(expResult, result);
46: }
47:
48: /**
49: * Test of False method, of class org.netbeans.test.junit.testresults.test.TestSuccess.
50: */
51: public void testFalse() {
52: System.out.println("False");
53:
54: TestSuccess instance = new TestSuccess();
55:
56: boolean expResult = false;
57: boolean result = instance.False();
58: assertEquals(expResult, result);
59: }
60:
61: }
|