1 17 package org.apache.tools.ant.taskdefs.optional; 18 19 import org.apache.tools.ant.BuildFileTest; 20 21 26 public class XsltTest extends BuildFileTest { 27 28 31 private final static String TASKDEFS_DIR = "src/etc/testcases/taskdefs/optional/"; 32 33 34 39 public XsltTest(String name) { 40 super(name); 41 } 42 43 44 47 public void setUp() { 48 configureProject(TASKDEFS_DIR + "xslt.xml"); 49 } 50 51 52 55 public void tearDown() { 56 executeTarget("teardown"); 57 } 58 59 60 61 64 public void testCatchNoDtd() throws Exception { 65 expectBuildExceptionContaining("testCatchNoDtd", 66 "expected failure", 67 "Fatal error during transformation"); 68 } 69 70 73 public void testCatalog() throws Exception { 74 executeTarget("testCatalog"); 75 } 76 77 public void testOutputProperty() throws Exception { 78 executeTarget("testOutputProperty"); 79 } 80 81 public void testFactory() throws Exception { 82 executeTarget("testFactory"); 83 } 84 85 public void testAttribute() throws Exception { 86 executeTarget("testAttribute"); 87 } 88 } 89 90 | Popular Tags |