1 26 27 package net.sourceforge.groboutils.pmti.v1.autodoc.v1; 28 29 import org.easymock.EasyMock; 30 import org.easymock.MockControl; 31 import junit.framework.Test; 32 import junit.framework.TestCase; 33 import junit.framework.TestSuite; 34 import net.sourceforge.groboutils.autodoc.v1.testserver.MonitorUTestI; 35 import net.sourceforge.groboutils.junit.v1.iftc.*; 36 import junit.framework.AssertionFailedError; 37 38 39 46 public class ITFMonitorUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = ITFMonitorUTest.class; 52 54 public ITFMonitorUTest( String name ) 55 { 56 super( name ); 57 } 58 59 60 63 67 protected void setUp() throws Exception 68 { 69 super.setUp(); 70 71 } 73 74 75 78 79 public void testConstructor1() 80 { 81 try 82 { 83 new ITFMonitor( null, null ); 84 fail("Did not throw IllegalArgumentException."); 85 } 86 catch (IllegalArgumentException e) 87 { 88 } 90 } 91 92 93 94 97 98 101 102 public static Test suite() 103 { 104 InterfaceTestSuite suite = MonitorUTestI.suite(); 105 suite.addTestSuite( THIS_CLASS ); 106 suite.addFactory( new CxFactory( "A" ) { 107 public Object createImplObject() { 108 return new ITFMonitor(); 109 } 110 } ); 111 112 return suite; 113 } 114 115 public static void main( String [] args ) 116 { 117 String [] name = { THIS_CLASS.getName() }; 118 119 122 junit.textui.TestRunner.main( name ); 123 } 124 125 126 130 protected void tearDown() throws Exception 131 { 132 134 135 super.tearDown(); 136 } 137 } 138 139 | Popular Tags |