FileDocCategorySizeDatePackage
WarTest.javaAPI DocApache Ant 1.701579Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs

WarTest

public class WarTest extends org.apache.tools.ant.BuildFileTest
Testcase for the war task

Fields Summary
public static final String
TEST_BUILD_FILE
Constructors Summary
public WarTest(String name)


       
        super(name);
    
Methods Summary
public voidsetUp()

        configureProject(TEST_BUILD_FILE);
    
public voidtearDown()

        executeTarget("clean");
    
public voidtestLibRefs()
Test direct dependency removal

        executeTarget("testlibrefs");
        File f = getProject().resolveFile("working/WEB-INF/lib/war.xml");
        assertTrue("File has been put into lib", f.exists());