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 IChannelLogReaderUTestI extends InterfaceTestCase 39 { 40 43 private static final Class THIS_CLASS = IChannelLogReaderUTestI.class; 44 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 45 46 public IChannelLogReaderUTestI( String name, ImplFactory f ) 47 { 48 super( name, IChannelLogReader.class, f ); 49 } 50 51 52 public IChannelLogReader createIChannelLogReader() 53 { 54 return (IChannelLogReader)createImplObject(); 55 } 56 57 58 61 62 public void testGetReaderForClassSignature1() throws Exception 63 { 64 IChannelLogReader clr = createIChannelLogReader(); 65 IClassChannelLogReader cclr = clr.getReaderForClassSignature( null ); 66 assertNotNull( 67 "Returned null reader.", 68 cclr ); 69 assertNull( 70 "Did not return null next.", 71 cclr.nextRecord() ); 72 } 73 74 75 public void testGetReaderForClassSignature2() throws Exception 76 { 77 IChannelLogReader clr = createIChannelLogReader(); 78 IClassChannelLogReader cclr = clr.getReaderForClassSignature( "" ); 79 assertNotNull( 80 "Returned null reader.", 81 cclr ); 82 assertNull( 83 "Did not return null next.", 84 cclr.nextRecord() ); 85 } 86 87 88 89 92 93 public static InterfaceTestSuite suite() 94 { 95 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 96 97 return suite; 98 } 99 100 public static void main( String [] args ) 101 { 102 String [] name = { THIS_CLASS.getName() }; 103 104 107 junit.textui.TestRunner.main( name ); 108 } 109 110 111 115 protected void setUp() throws Exception 116 { 117 super.setUp(); 118 119 } 121 122 123 127 protected void tearDown() throws Exception 128 { 129 131 132 super.tearDown(); 133 } 134 } 135 136 | Popular Tags |