1 26 27 package net.sourceforge.groboutils.junit.v1.parser; 28 29 import net.sourceforge.groboutils.junit.v1.iftc.*; 30 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 ITestCreatorUTestI extends InterfaceTestCase 45 { 46 49 private static final Class THIS_CLASS = ITestCreatorUTestI.class; 50 51 public ITestCreatorUTestI( String name, ImplFactory f ) 52 { 53 super( name, ITestCreator.class, f ); 54 } 55 56 57 protected ITestCreator createITestCreator() 58 { 59 return (ITestCreator)createImplObject(); 60 } 61 62 63 66 public void testCanCreate1() 67 { 68 ITestCreator tc = createITestCreator(); 69 tc.canCreate( Object .class ); 70 } 71 72 public void testCanCreate2() 73 { 74 ITestCreator tc = createITestCreator(); 75 assertTrue( !tc.canCreate( null ) ); 76 } 77 78 79 82 83 public static InterfaceTestSuite suite() 84 { 85 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 86 87 return suite; 88 } 89 90 public static void main( String [] args ) 91 { 92 String [] name = { THIS_CLASS.getName() }; 93 94 97 junit.textui.TestRunner.main( name ); 98 } 99 100 101 105 protected void setUp() throws Exception 106 { 107 super.setUp(); 108 109 } 111 112 113 117 protected void tearDown() throws Exception 118 { 119 121 122 super.tearDown(); 123 } 124 } 125 126 | Popular Tags |