1 26 27 package net.sourceforge.groboutils.autodoc.v1.log4j; 28 29 import net.sourceforge.groboutils.autodoc.v1.*; 30 import net.sourceforge.groboutils.autodoc.v1.spi.*; 31 import net.sourceforge.groboutils.autodoc.v1.defimpl.*; 32 33 import net.sourceforge.groboutils.junit.v1.iftc.*; 34 import junit.framework.Test; 35 import junit.framework.TestCase; 36 import junit.framework.TestSuite; 37 38 39 46 public class Log4jLogFactoryUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = Log4jLogFactoryUTest.class; 52 53 public Log4jLogFactoryUTest( String name ) 54 { 55 super( name ); 56 } 57 58 59 62 63 67 protected void setUp() throws Exception 68 { 69 super.setUp(); 70 71 } 73 74 75 78 79 public void testConstructor1() 80 { 81 new Log4jLogFactory(); 82 } 83 84 85 88 89 92 93 public static Test suite() 94 { 95 InterfaceTestSuite suite = AutoDocLogFactoryUTestI.suite(); 96 suite.addTestSuite( THIS_CLASS ); 97 suite.addFactory( new CxFactory( "A" ) { 98 public Object createImplObject() { 99 return new Log4jLogFactory(); 100 } 101 } ); 102 103 return suite; 104 } 105 106 public static void main( String [] args ) 107 { 108 String [] name = { THIS_CLASS.getName() }; 109 110 113 junit.textui.TestRunner.main( name ); 114 } 115 116 117 121 protected void tearDown() throws Exception 122 { 123 125 super.tearDown(); 126 } 127 } 128 129 | Popular Tags |