FileDocCategorySizeDatePackage
DOMUtilTest.javaAPI DocApache Ant 1.701964Wed Dec 13 06:16:24 GMT 2006org.apache.tools.ant.taskdefs.optional.junit

DOMUtilTest

public class DOMUtilTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestListChildNodes()

        DocumentBuilder db = JAXPUtils.getDocumentBuilder();
        InputStream is = this.getClass().getClassLoader().getResourceAsStream("taskdefs/optional/junit/matches.xml");
        Document doc = db.parse(is);
        NodeList nl = DOMUtil.listChildNodes(doc.getFirstChild(), new FooNodeFilter(), true);
        assertEquals(nl.getLength(), 3);