FileDocCategorySizeDatePackage
ResourceUtilsTest.javaAPI DocApache Ant 1.702237Wed Dec 13 06:16:24 GMT 2006org.apache.tools.ant.util

ResourceUtilsTest

public class ResourceUtilsTest extends TestCase implements org.apache.tools.ant.types.ResourceFactory, FileNameMapper
Tests for org.apache.tools.ant.util.ResourceUtils.

Fields Summary
private org.apache.tools.ant.taskdefs.Echo
taskINeedForLogging
Constructors Summary
public ResourceUtilsTest(String name)


       
        super(name);
        taskINeedForLogging.setProject(new Project());
    
Methods Summary
public org.apache.tools.ant.types.ResourcegetResource(java.lang.String name)

        return new Resource(name); // implies lastModified == 0
    
public java.lang.String[]mapFileName(java.lang.String s)

        return new String[] {"fred colon", "carrot ironfoundersson"};
    
public voidsetFrom(java.lang.String s)

public voidsetTo(java.lang.String s)

public voidtestNoDuplicates()

        Resource r = new Resource("samual vimes", true, 1, false);
        Resource[] toNew =
            ResourceUtils.selectOutOfDateSources(taskINeedForLogging,
                                                 new Resource[] {r},
                                                 this, this);
        assertEquals(1, toNew.length);