FileDocCategorySizeDatePackage
XsltTest.javaAPI DocApache Ant 1.702836Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional

XsltTest

public class XsltTest extends org.apache.tools.ant.BuildFileTest
Tests the {@link XSLTProcess} task. XXX merge with {@link StyleTest}?
since
Ant 1.5

Fields Summary
private static final String
TASKDEFS_DIR
where tasks run
Constructors Summary
public XsltTest(String name)
Constructor

param
name testname



             
       
        super(name);
    
Methods Summary
public voidsetUp()
The JUnit setup method

        configureProject(TASKDEFS_DIR + "xslt.xml");
    
public voidtearDown()
The teardown method for JUnit

        executeTarget("teardown");
    
public voidtestAttribute()

        executeTarget("testAttribute");
    
public voidtestCatalog()
A unit test for JUnit

         executeTarget("testCatalog");
    
public voidtestCatchNoDtd()
A unit test for JUnit

        expectBuildExceptionContaining("testCatchNoDtd",
                                       "expected failure",
                                       "Fatal error during transformation");
    
public voidtestFactory()

        executeTarget("testFactory");
    
public voidtestOutputProperty()

      executeTarget("testOutputProperty");
    
public voidtestStyleSheetWithInclude()
check that the system id gets set properly on stylesheets.

throws
Exception if something goes wrong.

        executeTarget("testStyleSheetWithInclude");
        if (getLog().indexOf("java.io.FileNotFoundException") != -1) {
            fail("xsl:include was not found");
        }
    
public voidtestXMLWithEntitiesInNonAsciiPath()

        executeTarget("testXMLWithEntitiesInNonAsciiPath");