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

MkdirTest

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

Fields Summary
Constructors Summary
public MkdirTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/mkdir.xml");
    
public voidtest1()

        expectBuildException("test1", "required argument missing");
    
public voidtest2()

        expectBuildException("test2", "directory already exists as a file");
    
public voidtest3()

        executeTarget("test3");
        java.io.File f = new java.io.File(getProjectDir(), "testdir.tmp");
        if (!f.exists() || !f.isDirectory()) {
            fail("mkdir failed");
        } else {
            f.delete();
        }