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 MonitorFinderUTestI extends InterfaceTestCase 48 { 49 52 private static final Class THIS_CLASS = MonitorFinderUTestI.class; 53 55 public MonitorFinderUTestI( String name, ImplFactory f ) 56 { 57 super( name, MonitorFinder.class, f ); 58 } 59 60 61 public MonitorFinder createMonitorFinder() 62 { 63 return (MonitorFinder)createImplObject(); 64 } 65 66 67 70 71 public void testGetMonitor1() 72 { 73 MonitorFinder mf = createMonitorFinder(); 74 Monitor m = mf.getMonitor(); 75 assertNotNull( 76 "monitor can't be null.", 77 m ); 78 } 79 80 81 82 85 86 public static InterfaceTestSuite suite() 87 { 88 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 89 90 return suite; 91 } 92 93 public static void main( String [] args ) 94 { 95 String [] name = { THIS_CLASS.getName() }; 96 97 100 junit.textui.TestRunner.main( name ); 101 } 102 103 104 108 protected void setUp() throws Exception 109 { 110 super.setUp(); 111 112 } 114 115 116 120 protected void tearDown() throws Exception 121 { 122 124 125 super.tearDown(); 126 } 127 } 128 129 | Popular Tags |