FileDocCategorySizeDatePackage
LoadPropertiesTest.javaAPI DocApache Ant 1.701833Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs

LoadPropertiesTest

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

Fields Summary
Constructors Summary
public LoadPropertiesTest(String name)

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

        configureProject("src/etc/testcases/taskdefs/loadproperties.xml");
    
public voidtearDown()
The teardown method for JUnit

        executeTarget("cleanup");
    
public voidtestPrefixedProperties()

        executeTarget("testPrefixedProperties");
        String url = project.getProperty("server1.http.url");
        assertEquals("http://localhost:80", url);
    
public voidtestPropertiesFromFileSet()

        executeTarget("testPropertiesFromFileSet");
        executeTarget("loadPropertiesCheck");
    
public voidtestPropertiesFromResource()

        executeTarget("testPropertiesFromResource");
        executeTarget("loadPropertiesCheck");