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

CopyfileTest

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

Fields Summary
Constructors Summary
public CopyfileTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/copyfile.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 copyfile task is deprecated.  Use copy instead.Warning: src == dest");
    
public voidtest5()

        executeTarget("test5");
        java.io.File f = new java.io.File(getProjectDir(), "copyfile.tmp");
        if (f.exists()) {
            f.delete();
        } else {
            fail("Copy failed");
        }
    
public voidtest6()

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