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.IClassChannelLogReaderUTestI; 35 import net.sourceforge.groboutils.junit.v1.iftc.CxFactory; 36 import net.sourceforge.groboutils.junit.v1.iftc.InterfaceTestSuite; 37 38 39 46 public class EmptyClassChannelLogReaderUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = EmptyClassChannelLogReaderUTest.class; 52 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 53 54 public EmptyClassChannelLogReaderUTest( String name ) 55 { 56 super( name ); 57 } 58 59 60 63 64 public void testConstructor1() 65 { 66 new EmptyClassChannelLogReader(); 67 } 68 69 70 public void testNextRecord1() throws Exception 71 { 72 EmptyClassChannelLogReader ecclr = new EmptyClassChannelLogReader(); 73 assertNull( 74 "Didn't return null.", 75 ecclr.nextRecord() ); 76 } 77 78 79 82 83 84 87 88 public static Test suite() 89 { 90 InterfaceTestSuite suite = IClassChannelLogReaderUTestI.suite(); 91 suite.addTestSuite( THIS_CLASS ); 92 suite.addFactory( new CxFactory( "A" ) { 93 public Object createImplObject() throws IOException { 94 return new EmptyClassChannelLogReader(); 95 } 96 } ); 97 98 return suite; 99 } 100 101 public static void main( String [] args ) 102 { 103 String [] name = { THIS_CLASS.getName() }; 104 105 108 junit.textui.TestRunner.main( name ); 109 } 110 111 112 116 protected void setUp() throws Exception 117 { 118 super.setUp(); 119 120 121 } 123 124 125 129 protected void tearDown() throws Exception 130 { 131 133 134 super.tearDown(); 135 } 136 } 137 138 | Popular Tags |