FileDocCategorySizeDatePackage
JAXPUtilsTest.javaAPI DocApache Ant 1.701522Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.util

JAXPUtilsTest

public class JAXPUtilsTest extends TestCase
JAXPUtils test case

Fields Summary
Constructors Summary
public JAXPUtilsTest(String name)

        super(name);
    
Methods Summary
public voidtestGetSystemId()

        File file = null;
        if ( File.separatorChar == '\\" ){
            file = new File("d:\\jdk");
        } else {
            file = new File("/user/local/bin");
        }
        String systemid = JAXPUtils.getSystemId(file);
        assertTrue("SystemIDs should start by file:/", systemid.startsWith("file:/"));
        assertTrue("SystemIDs should not start with file:////", !systemid.startsWith("file:////"));