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.IChannelLoggerUTestI; 35 import net.sourceforge.groboutils.junit.v1.iftc.CxFactory; 36 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestSuite; 37 38 39 46 public class NoOpChannelLoggerUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = NoOpChannelLoggerUTest.class; 52 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 53 54 public NoOpChannelLoggerUTest( String name ) 55 { 56 super( name ); 57 } 58 59 60 63 64 public void testConstructor1() 65 { 66 new NoOpChannelLogger(); 67 } 68 69 70 71 74 75 76 79 80 public static Test suite() 81 { 82 InterfaceTestSuite suite = IChannelLoggerUTestI.suite(); 83 suite.addTestSuite( THIS_CLASS ); 84 suite.addFactory( new CxFactory( "A" ) { 85 public Object createImplObject() throws IOException { 86 return new NoOpChannelLogger(); 87 } 88 } ); 89 90 return suite; 91 } 92 93 public static void main( String [] args ) 94 { 95 String [] name = { THIS_CLASS.getName() }; 96 97 100 junit.textui.TestRunner.main( name ); 101 } 102 103 104 108 protected void setUp() throws Exception 109 { 110 super.setUp(); 111 112 113 } 115 116 117 121 protected void tearDown() throws Exception 122 { 123 125 126 super.tearDown(); 127 } 128 } 129 130 | Popular Tags |