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.spi.TestListenerFactoryUTestI; 35 import net.sourceforge.groboutils.junit.v1.iftc.*; 36 import junit.framework.AssertionFailedError; 37 38 39 46 public class ITFJUnitListenerFactoryUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = ITFJUnitListenerFactoryUTest.class; 52 54 public ITFJUnitListenerFactoryUTest( String name ) 55 { 56 super( name ); 57 } 58 59 60 63 64 68 protected void setUp() throws Exception 69 { 70 super.setUp(); 71 72 } 74 75 76 79 80 public void testCreateListener1() 81 { 82 ITFJUnitListenerFactory lf = new ITFJUnitListenerFactory(); 83 84 assertTrue( 85 "Not right kind of subclass.", 86 lf.createListener() instanceof ITFJUnitListener ); 87 } 88 89 90 91 94 95 96 99 100 public static Test suite() 101 { 102 InterfaceTestSuite suite = TestListenerFactoryUTestI.suite(); 103 suite.addTestSuite( THIS_CLASS ); 104 suite.addFactory( new CxFactory( "A" ) { 105 public Object createImplObject() { 106 return new ITFJUnitListenerFactory(); 107 } 108 } ); 109 110 return suite; 111 } 112 113 public static void main( String [] args ) 114 { 115 String [] name = { THIS_CLASS.getName() }; 116 117 120 junit.textui.TestRunner.main( name ); 121 } 122 123 124 128 protected void tearDown() throws Exception 129 { 130 132 133 super.tearDown(); 134 } 135 } 136 137 | Popular Tags |