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 ICxFactoryUTestI extends InterfaceTestCase 45 { 46 49 private static final Class THIS_CLASS = ICxFactoryUTestI.class; 50 52 public ICxFactoryUTestI( String name, ImplFactory f ) 53 { 54 super( name, ICxFactory.class, f ); 55 } 56 57 58 protected ICxFactory createICxFactory() 59 { 60 return (ICxFactory)createImplObject(); 61 } 62 63 64 67 68 70 public void testCreateICxObject1() 71 { 72 ICxFactory implf = createICxFactory(); 73 assertNotNull( 74 "Returned null factory.", 75 implf ); 76 } 77 78 79 82 83 public static InterfaceTestSuite suite() 84 { 85 InterfaceTestSuite suite = ImplFactoryUTestI.suite(); 86 suite.addTestSuite( THIS_CLASS ); 87 88 return suite; 89 } 90 91 public static void main( String [] args ) 92 { 93 String [] name = { THIS_CLASS.getName() }; 94 95 98 junit.textui.TestRunner.main( name ); 99 } 100 101 102 106 protected void setUp() throws Exception 107 { 108 super.setUp(); 109 110 } 112 113 114 118 protected void tearDown() throws Exception 119 { 120 122 123 super.tearDown(); 124 } 125 } 126 127 | Popular Tags |