assertTrue("Differences: " + problems, compareXmlObjects(xmlObject, expected, problems));
boolean ok = compareXmlObjects(xmlObject, expected, problems); assertTrue("Differences: " + problems, ok); xmlObject = SchemaConversionUtils.convertToServletSchema(xmlObject); boolean ok2 = compareXmlObjects(xmlObject, expected, problems); assertTrue("Differences: " + problems, ok2);
    public void testWeb23To24Transform() throws Exception {        File srcXml = new File("src/test-data/j2ee_1_3dtd/web-23.xml");        File expectedOutputXml = new File("src/test-data/j2ee_1_3dtd/web-24.xml");        XmlObject xmlObject = XmlObject.Factory.parse(srcXml);        xmlObject = SchemaConversionUtils.convertToServletSchema(xmlObject);        XmlObject expected = XmlObject.Factory.parse(expectedOutputXml);        List problems = new ArrayList();        assertTrue("Differences: " + problems, compareXmlObjects(xmlObject, expected, problems));    }