1 26 27 package net.sourceforge.groboutils.codecoverage.v2.logger; 28 29 import java.io.File ; 30 31 import junit.framework.Test; 32 import junit.framework.TestSuite; 33 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 34 import net.sourceforge.groboutils.codecoverage.v2.ant.AntTestA; 35 36 43 public class CacheDirChannelLoggerIUTest extends AntTestA 44 { 45 48 private static final Class THIS_CLASS = CacheDirChannelLoggerIUTest.class; 49 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 50 51 public CacheDirChannelLoggerIUTest( String name ) 52 { 53 super( name ); 54 } 55 56 57 60 61 64 public void testBug1() 66 { 67 DOC.getIT().testsIssue( 902884 ); 68 try 69 { 70 executeTarget( "bug-1" ); 71 } 72 finally 73 { 74 System.out.println( getFullLog() ); 75 } 76 } 77 78 79 82 83 84 85 88 89 protected File getCoverageDir() 90 { 91 return new File ( getProjectDir(), "instrument" + 92 File.separator + "coverage" ); 93 } 94 95 96 99 100 public static Test suite() 101 { 102 TestSuite suite = new TestSuite( THIS_CLASS ); 103 104 return suite; 105 } 106 107 public static void main( String [] args ) 108 { 109 String [] name = { THIS_CLASS.getName() }; 110 111 114 junit.textui.TestRunner.main( name ); 115 } 116 117 118 122 protected void setUp() throws Exception 123 { 124 super.setUp(); 125 126 configureProject( "cachelogger.xml" ); 128 } 129 130 131 135 protected void tearDown() throws Exception 136 { 137 executeTarget( "test-teardown" ); 139 140 super.tearDown(); 141 } 142 } 143 144 | Popular Tags |