1 26 27 package net.sourceforge.groboutils.junit.v1.iftc; 28 29 import org.easymock.EasyMock; 31 import org.easymock.MockControl; 32 import junit.framework.Test; 33 import junit.framework.TestCase; 34 import junit.framework.TestSuite; 35 36 37 44 public class ImplFactoryUTestI extends InterfaceTestCase 45 { 46 49 private static final Class THIS_CLASS = ImplFactoryUTestI.class; 50 52 public ImplFactoryUTestI( String name, ImplFactory f ) 53 { 54 super( name, ImplFactory.class, f ); 55 } 56 57 58 protected ImplFactory createImplFactory() 59 { 60 return (ImplFactory)createImplObject(); 61 } 62 63 64 67 68 public void testCreateImplObject1() 69 { 70 ImplFactory implf = createImplFactory(); 71 assertNotNull( 72 "Returned null factory.", 73 implf ); 74 } 75 76 77 80 81 public static InterfaceTestSuite suite() 82 { 83 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 84 85 return suite; 86 } 87 88 public static void main( String [] args ) 89 { 90 String [] name = { THIS_CLASS.getName() }; 91 92 95 junit.textui.TestRunner.main( name ); 96 } 97 98 99 103 protected void setUp() throws Exception 104 { 105 super.setUp(); 106 107 } 109 110 111 115 protected void tearDown() throws Exception 116 { 117 119 120 super.tearDown(); 121 } 122 } 123 124 | Popular Tags |