FileDocCategorySizeDatePackage
IsReferenceTest.javaAPI DocApache Ant 1.701974Wed Dec 13 06:16:24 GMT 2006org.apache.tools.ant.taskdefs.condition

IsReferenceTest

public class IsReferenceTest extends org.apache.tools.ant.BuildFileTest
Testcases for the <isreference> condition.

Fields Summary
Constructors Summary
public IsReferenceTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()
The JUnit setup method

        configureProject("src/etc/testcases/taskdefs/conditions/isreference.xml");
    
public voidtestBasic()

       expectPropertySet("basic", "global-path");
       assertPropertySet("target-path");
       assertPropertyUnset("undefined");
    
public voidtestNotEnoughArgs()

        expectSpecificBuildException("isreference-incomplete",
                                     "refid attribute has been omitted",
                                     "No reference specified for isreference "
                                     + "condition");
    
public voidtestType()

       expectPropertySet("type", "global-path");
       assertPropertyUnset("global-path-as-fileset");
       assertPropertyUnset("global-path-as-foo");
       assertPropertySet("global-echo");