1 26 27 package net.sourceforge.groboutils.autodoc.v1.testserver; 28 29 import net.sourceforge.groboutils.autodoc.v1.*; 30 31 import org.easymock.EasyMock; 33 import org.easymock.MockControl; 34 import net.sourceforge.groboutils.junit.v1.iftc.*; 35 import junit.framework.Test; 36 import junit.framework.TestCase; 37 import junit.framework.TestSuite; 38 39 40 47 public class TestCorrelateUTestI extends InterfaceTestCase 48 { 49 52 private static final Class THIS_CLASS = TestCorrelateUTestI.class; 53 55 public TestCorrelateUTestI( String name, ImplFactory f ) 56 { 57 super( name, TestCorrelate.class, f ); 58 } 59 60 61 public TestCorrelate createTestCorrelate() 62 { 63 return (TestCorrelate)createImplObject(); 64 } 65 66 67 70 71 public void testFindMethodFromStack1() 72 { 73 TestCorrelate tc = createTestCorrelate(); 74 String s = tc.findClassMethodFromStack(); 75 } 76 77 78 public void testCreateTestInfoFromStack1() 79 { 80 TestCorrelate tc = createTestCorrelate(); 81 TestInfo ti = tc.createTestInfoFromStack(); 82 assertNotNull( 83 "Must never return null test info.", 84 ti ); 85 } 86 87 88 public void testCreateTestInfo1() 89 { 90 TestCorrelate tc = createTestCorrelate(); 91 TestInfo ti = tc.createTestInfo( "method" ); 92 assertNotNull( 93 "Must never return null test info.", 94 ti ); 95 assertEquals( 96 "Did not set right method name.", 97 "method", 98 ti.getMethod() ); 99 } 100 101 102 public void testGetFinder1() 103 { 104 TestCorrelate tc = createTestCorrelate(); 105 MonitorFinder mf = tc.getFinder(); 106 assertNotNull( 107 "Must never return null monitor finder.", 108 mf ); 109 } 110 111 112 115 116 public static InterfaceTestSuite suite() 117 { 118 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 119 120 return suite; 121 } 122 123 public static void main( String [] args ) 124 { 125 String [] name = { THIS_CLASS.getName() }; 126 127 130 junit.textui.TestRunner.main( name ); 131 } 132 133 134 138 protected void setUp() throws Exception 139 { 140 super.setUp(); 141 142 } 144 145 146 150 protected void tearDown() throws Exception 151 { 152 154 155 super.tearDown(); 156 } 157 } 158 159 | Popular Tags |