1 26 27 package net.sourceforge.groboutils.codecoverage.v2.logger; 28 29 import java.io.IOException ; 30 31 import junit.framework.Test; 32 import junit.framework.TestCase; 33 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 34 import net.sourceforge.groboutils.codecoverage.v2.IChannelLoggerFactoryUTestI; 35 import net.sourceforge.groboutils.junit.v1.iftc.CxFactory; 36 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestSuite; 37 38 39 46 public class NoOpChannelLoggerFactoryUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = NoOpChannelLoggerFactoryUTest.class; 52 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 53 54 public NoOpChannelLoggerFactoryUTest( String name ) 55 { 56 super( name ); 57 } 58 59 60 63 64 public void testConstructor1() 65 { 66 new NoOpChannelLoggerFactory(); 67 } 68 69 70 73 74 75 78 79 public static Test suite() 80 { 81 InterfaceTestSuite suite = IChannelLoggerFactoryUTestI.suite(); 82 suite.addTestSuite( THIS_CLASS ); 83 suite.addFactory( new CxFactory( "A" ) { 84 public Object createImplObject() throws IOException { 85 return new NoOpChannelLoggerFactory(); 86 } 87 } ); 88 89 return suite; 90 } 91 92 public static void main( String [] args ) 93 { 94 String [] name = { THIS_CLASS.getName() }; 95 96 99 junit.textui.TestRunner.main( name ); 100 } 101 102 103 107 protected void setUp() throws Exception 108 { 109 super.setUp(); 110 111 112 } 114 115 116 120 protected void tearDown() throws Exception 121 { 122 124 125 super.tearDown(); 126 } 127 } 128 129 | Popular Tags |