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

AvailableTest

public class AvailableTest extends org.apache.tools.ant.BuildFileTest
JUnit test for the Available task/condition.

Fields Summary
Constructors Summary
public AvailableTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

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

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

        executeTarget("test10");
        assertEquals("true", project.getProperty("test"));
    
public voidtest11()

        executeTarget("test11");
        assertNull(project.getProperty("test"));
    
public voidtest12()

        executeTarget("test12");
        assertNull(project.getProperty("test"));
        assertEquals("true", project.getProperty(""));
    
public voidtest13()

        executeTarget("test13");
        assertNull(project.getProperty("test"));
    
public voidtest13b()

        executeTarget("test13b");
        assertEquals("true", project.getProperty("test"));
    
public voidtest15()

        executeTarget("test15");
        assertNull(project.getProperty("test"));
    
public voidtest16()

        executeTarget("test16");
        assertEquals("true", project.getProperty("test"));
    
public voidtest17()

        executeTarget("test17");
        assertEquals("true", project.getProperty("test"));
    
public voidtest18()

        executeTarget("test18");
        assertNull(project.getProperty("test"));
    
public voidtest19()

        expectBuildException("test19", "Invalid value for type attribute.");
    
public voidtest2()

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

        executeTarget("test20");
        assertNull(project.getProperty("test"));
    
public voidtest21()

        executeTarget("test21");
        assertEquals("true", project.getProperty("test"));
    
public voidtest22()

        executeTarget("test22");
        assertEquals("true", project.getProperty("test"));
    
public voidtest23()

        executeTarget("test23");
        assertEquals("true", project.getProperty("test"));
    
public voidtest24()

        executeTarget("test24");
        assertEquals("true", project.getProperty("test"));
    
public voidtest3()

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

        executeTarget("test4");
        assertTrue(project.getProperty("test") == null);
    
public voidtest5()

        executeTarget("test5");
        assertEquals("true", project.getProperty("test"));
    
public voidtest6()

        executeTarget("test6");
        assertTrue(project.getProperty("test") == null);
    
public voidtest7()

        executeTarget("test7");
        assertEquals("true", project.getProperty("test"));
    
public voidtest8()

        executeTarget("test8");
        assertTrue(project.getProperty("test") == null);
    
public voidtest9()

        executeTarget("test9");
        assertEquals("true", project.getProperty("test"));
    
public voidtestDoubleBasedir()

        executeTarget("testDoubleBasedir");
    
public voidtestSearchInPathIsThere()

        executeTarget("searchInPathIsThere");
        assertEquals("true", project.getProperty("test"));
    
public voidtestSearchInPathNotThere()

        executeTarget("searchInPathNotThere");
        assertNull(project.getProperty("test"));
    
public voidtestSearchParents()

        executeTarget("search-parents");
    
public voidtestSearchParentsNot()

        executeTarget("search-parents-not");