FileDocCategorySizeDatePackage
CopydirTest.javaAPI DocApache Ant 1.702067Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs

CopydirTest

public class CopydirTest extends org.apache.tools.ant.BuildFileTest

Fields Summary
Constructors Summary
public CopydirTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/copydir.xml");
    
public voidtearDown()

        executeTarget("cleanup");
    
public voidtest1()

        expectBuildException("test1", "required argument not specified");
    
public voidtest2()

        expectBuildException("test2", "required argument not specified");
    
public voidtest3()

        expectBuildException("test3", "required argument not specified");
    
public voidtest4()

        expectLog("test4", "DEPRECATED - The copydir task is deprecated.  Use copy instead.Warning: src == dest");
    
public voidtest5()

        executeTarget("test5");
        java.io.File f = new java.io.File(getProjectDir(), "../taskdefs.tmp");
        if (!f.exists() || !f.isDirectory()) {
            fail("Copy failed");
        }
        // We keep this, so we have something to delete in later tests :-)
    
public voidtest6()

        expectBuildException("test6", "target is file");