FileDocCategorySizeDatePackage
UnPackageNameMapperTest.javaAPI DocApache Ant 1.701581Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.util

UnPackageNameMapperTest

public class UnPackageNameMapperTest extends TestCase

Fields Summary
Constructors Summary
public UnPackageNameMapperTest(String name)

 super(name); 
Methods Summary
private java.lang.StringfixupPath(java.lang.String file)

        return file.replace('/", File.separatorChar);
    
public voidtestMapping()

        UnPackageNameMapper mapper = new UnPackageNameMapper();
        mapper.setFrom("TEST-*.xml");
        mapper.setTo("*.java");
        String file ="TEST-org.apache.tools.ant.util.UnPackageNameMapperTest.xml";
        String result = mapper.mapFileName(file)[0];
        String expected = fixupPath("org/apache/tools/ant/util/UnPackageNameMapperTest.java");

        assertEquals(expected, result);