1 26 27 package net.sourceforge.groboutils.autodoc.v1.junit; 28 29 import org.easymock.EasyMock; 30 import org.easymock.MockControl; 31 import junit.framework.Test; 32 import junit.framework.TestCase; 33 import junit.framework.TestSuite; 34 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 35 import net.sourceforge.groboutils.junit.v1.iftc.*; 36 import junit.framework.AssertionFailedError; 37 38 39 46 public class AutoDocJUnitFormatterJDK13UTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = AutoDocJUnitFormatterJDK13UTest.class; 52 private static final AutoDoc AD = new AutoDoc(THIS_CLASS); 53 54 public AutoDocJUnitFormatterJDK13UTest( String name ) 55 { 56 super( name ); 57 } 58 59 60 63 67 protected void setUp() throws Exception 68 { 69 super.setUp(); 70 71 } 73 74 75 78 public void testConstructor1() 79 { 80 new AutoDocJUnitFormatter(); 81 } 82 83 public void testStartTestSuite() 84 { 85 createFormatter().startTestSuite( null ); 86 } 87 88 public void testEndTestSuite() 89 { 90 createFormatter().endTestSuite( null ); 91 } 92 93 public void testSetOutput() 94 { 95 createFormatter().setOutput( null ); 96 } 97 98 public void testSetSystemOutput() 99 { 100 createFormatter().setSystemOutput( null ); 101 } 102 103 public void testSetSystemError() 104 { 105 createFormatter().setSystemError( null ); 106 } 107 108 109 110 113 114 protected AutoDocJUnitFormatter createFormatter() 115 { 116 return new AutoDocJUnitFormatter(); 117 } 118 119 120 123 124 public static Test suite() 125 { 126 InterfaceTestSuite suite = AutoDocJUnitListenerUTestI.suite(); 127 suite.addTestSuite( THIS_CLASS ); 128 suite.addFactory( new CxFactory( "A" ) { 129 public Object createImplObject() { 130 return new AutoDocJUnitFormatter(); 131 } 132 } ); 133 134 return suite; 135 } 136 137 public static void main( String [] args ) 138 { 139 String [] name = { THIS_CLASS.getName() }; 140 141 144 junit.textui.TestRunner.main( name ); 145 } 146 147 148 152 protected void tearDown() throws Exception 153 { 154 156 157 super.tearDown(); 158 } 159 } 160 161 | Popular Tags |