1 17 18 package org.apache.tools.ant.taskdefs.optional.junit; 19 20 import java.io.File ; 21 import org.apache.tools.ant.BuildFileTest; 22 23 28 public class JUnitReportTest extends BuildFileTest { 29 30 public JUnitReportTest(String name){ 31 super(name); 32 } 33 34 protected void setUp() { 35 configureProject("src/etc/testcases/taskdefs/optional/junitreport.xml"); 36 } 37 38 protected void tearDown() { 39 executeTarget("clean"); 40 } 41 42 47 public void testNoFileJUnitNoFrames() { 48 executeTarget("reports1"); 49 if (new File ("src/etc/testcases/taskdefs/optional/junitreport/test/html/junit-noframes.html").exists()) 50 { 51 fail("No file junit-noframes.html expected"); 52 } 53 } 54 55 } 56 57 | Popular Tags |