1 26 27 package net.sourceforge.groboutils.pmti.v1.autodoc.v1; 28 29 import java.util.Vector ; 30 import java.util.Hashtable ; 31 import junit.framework.Test; 32 import junit.framework.TestCase; 33 import junit.framework.TestSuite; 34 import net.sourceforge.groboutils.autodoc.v1.testserver.MonitorFinderUTestI; 35 import net.sourceforge.groboutils.autodoc.v1.testserver.Monitor; 36 import net.sourceforge.groboutils.junit.v1.iftc.*; 37 import junit.framework.AssertionFailedError; 38 39 40 47 public class ITFMonitorFinderUTest extends TestCase 48 { 49 52 private static final Class THIS_CLASS = ITFMonitorFinderUTest.class; 53 55 public ITFMonitorFinderUTest( String name ) 56 { 57 super( name ); 58 } 59 60 61 64 68 protected void setUp() throws Exception 69 { 70 super.setUp(); 71 72 } 74 75 76 79 80 public void testGetMonitor1() 81 { 82 ITFMonitorFinder mf = new ITFMonitorFinder(); 83 Monitor m = mf.getMonitor(); 84 assertNotNull( 85 "getMonitor() returned null.", 86 m ); 87 } 88 89 90 93 94 97 98 public static Test suite() 99 { 100 InterfaceTestSuite suite = MonitorFinderUTestI.suite(); 101 suite.addTestSuite( THIS_CLASS ); 102 suite.addFactory( new CxFactory( "A" ) { 103 public Object createImplObject() { 104 return new ITFMonitorFinder(); 105 } 106 } ); 107 108 return suite; 109 } 110 111 public static void main( String [] args ) 112 { 113 String [] name = { THIS_CLASS.getName() }; 114 115 118 junit.textui.TestRunner.main( name ); 119 } 120 121 122 126 protected void tearDown() throws Exception 127 { 128 130 131 super.tearDown(); 132 } 133 } 134 135 | Popular Tags |