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.*; 35 import net.sourceforge.groboutils.autodoc.v1.*; 36 import net.sourceforge.groboutils.junit.v1.iftc.*; 37 import junit.framework.AssertionFailedError; 38 39 40 47 public class DefaultITFFactoryUTest extends TestCase 48 { 49 52 private static final Class THIS_CLASS = DefaultITFFactoryUTest.class; 53 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 54 55 public DefaultITFFactoryUTest( 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 testCreateServer1() 81 { 82 DefaultITFFactory factory = new DefaultITFFactory(); 83 assertNotNull( 84 "Null server on create.", 85 factory.createServer() ); 86 } 87 88 89 public void testCreateTestDataFactory1() 90 { 91 DefaultITFFactory factory = new DefaultITFFactory(); 92 assertNotNull( 93 "Null test data factory on create.", 94 factory.createTestDataFactory() ); 95 } 96 97 98 101 102 105 106 public static Test suite() 107 { 108 InterfaceTestSuite suite = ITFFactoryUTestI.suite(); 109 suite.addTestSuite( THIS_CLASS ); 110 suite.addFactory( new CxFactory( "A" ) { 111 public Object createImplObject() { 112 return new DefaultITFFactory(); 113 } 114 } ); 115 116 return suite; 117 } 118 119 public static void main( String [] args ) 120 { 121 String [] name = { THIS_CLASS.getName() }; 122 123 126 junit.textui.TestRunner.main( name ); 127 } 128 129 130 134 protected void tearDown() throws Exception 135 { 136 138 139 super.tearDown(); 140 } 141 } 142 143 | Popular Tags |