|
|
|
@@ -28,6 +28,7 @@ import javax.xml.transform.stream.StreamResult; |
|
|
|
|
|
|
|
import junit.framework.TestCase; |
|
|
|
import org.apache.tools.ant.types.Path; |
|
|
|
import org.apache.tools.ant.util.FileUtils; |
|
|
|
import org.w3c.dom.Document; |
|
|
|
import org.w3c.dom.Node; |
|
|
|
import org.w3c.dom.NodeList; |
|
|
|
@@ -36,6 +37,9 @@ import org.w3c.dom.NodeList; |
|
|
|
* Ensure that reference classpath feature is working fine... |
|
|
|
*/ |
|
|
|
public class XMLReportTest extends TestCase { |
|
|
|
/** helper for some File/URL connversions */ |
|
|
|
private static FileUtils fileUtils = FileUtils.newFileUtils(); |
|
|
|
|
|
|
|
public XMLReportTest(String s) { |
|
|
|
super(s); |
|
|
|
} |
|
|
|
@@ -45,7 +49,7 @@ public class XMLReportTest extends TestCase { |
|
|
|
if (url == null) { |
|
|
|
throw new FileNotFoundException("Unable to load '" + name + "' from classpath"); |
|
|
|
} |
|
|
|
return new File(url.getFile()); |
|
|
|
return new File(fileUtils.fromURI(url.toString())); |
|
|
|
} |
|
|
|
|
|
|
|
public void testCreateDocument() throws Exception { |
|
|
|
|