1 7 8 package org.netbeans.test.junit.testresults.test; 9 10 import junit.framework.TestCase; 11 import junit.framework.*; 12 13 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 = 31 new junit.framework.TestSuite(TestSuccessTest.class); 32 return suite; 33 } 34 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 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 |