1 22 23 package net.sourceforge.groboutils.codecoverage.v2; 24 25 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 26 import net.sourceforge.groboutils.junit.v1.iftc.ImplFactory; 27 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestCase; 28 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestSuite; 29 30 31 38 public class IChannelLoggerUTestI extends InterfaceTestCase 39 { 40 43 private static final Class THIS_CLASS = IChannelLoggerUTestI.class; 44 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 45 46 public IChannelLoggerUTestI( String name, ImplFactory f ) 47 { 48 super( name, IChannelLogger.class, f ); 49 } 50 51 52 public IChannelLogger createIChannelLogger() 53 { 54 return (IChannelLogger)createImplObject(); 55 } 56 57 58 61 62 public void testCover1() 63 { 64 IChannelLogger cl = createIChannelLogger(); 65 cl.cover( null, (short)0, (short)0 ); 66 } 67 68 69 public void testCover2() 70 { 71 IChannelLogger cl = createIChannelLogger(); 72 cl.cover( "", (short)0, (short)0 ); 73 } 74 75 76 public void testCover3() 77 { 78 IChannelLogger cl = createIChannelLogger(); 79 cl.cover( "a", Short.MIN_VALUE, Short.MIN_VALUE ); 80 } 81 82 83 public void testCover4() 84 { 85 IChannelLogger cl = createIChannelLogger(); 86 cl.cover( "a", Short.MAX_VALUE, Short.MAX_VALUE ); 87 } 88 89 90 91 94 95 public static InterfaceTestSuite suite() 96 { 97 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 98 99 return suite; 100 } 101 102 public static void main( String [] args ) 103 { 104 String [] name = { THIS_CLASS.getName() }; 105 106 109 junit.textui.TestRunner.main( name ); 110 } 111 112 113 117 protected void setUp() throws Exception 118 { 119 super.setUp(); 120 121 } 123 124 125 129 protected void tearDown() throws Exception 130 { 131 133 134 super.tearDown(); 135 } 136 } 137 138 | Popular Tags |