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 IChannelLogRecordUTestI extends InterfaceTestCase 39 { 40 43 private static final Class THIS_CLASS = IChannelLogRecordUTestI.class; 44 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 45 46 public IChannelLogRecordUTestI( String name, ImplFactory f ) 47 { 48 super( name, IChannelLogRecord.class, f ); 49 } 50 51 52 public IChannelLogRecord createIChannelLogRecord() 53 { 54 return (IChannelLogRecord)createImplObject(); 55 } 56 57 58 61 62 public void testGetClassSignature1() 63 { 64 IChannelLogRecord clr = createIChannelLogRecord(); 65 String s = clr.getClassSignature(); 66 assertNotNull( 67 "Null class signature.", 68 s ); 69 assertTrue( 70 "Empty class signature.", 71 s.length() > 0 ); 72 } 73 74 75 public void testGetMethodIndex1() 76 { 77 IChannelLogRecord clr = createIChannelLogRecord(); 78 short s = clr.getMethodIndex(); 79 assertTrue( 80 "Method index is invalid.", 81 s >= 0 ); 82 } 83 84 85 public void testGetMarkIndex1() 86 { 87 IChannelLogRecord clr = createIChannelLogRecord(); 88 short s = clr.getMarkIndex(); 89 90 } 92 93 94 95 98 99 public static InterfaceTestSuite suite() 100 { 101 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 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 setUp() throws Exception 122 { 123 super.setUp(); 124 125 } 127 128 129 133 protected void tearDown() throws Exception 134 { 135 137 138 super.tearDown(); 139 } 140 } 141 142 | Popular Tags |