FileDocCategorySizeDatePackage
XmlParserTest.javaAPI DocApache Ant 1.701920Wed Dec 13 06:16:18 GMT 2006org.example.junit

XmlParserTest

public class XmlParserTest extends TestCase
created Aug 12, 2004 1:39:59 PM

Fields Summary
Constructors Summary
public XmlParserTest(String s)

        super(s);
    
Methods Summary
public voidtestParserHandlesSchema()

        XMLReader xerces;
        xerces = XMLReaderFactory.createXMLReader();
        xerces.setFeature("http://apache.org/xml/features/validation/schema",
                true);
    
public voidtestXercesHandlesSchema()

        XMLReader xerces;
        xerces = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
        xerces.setFeature("http://apache.org/xml/features/validation/schema",
                true);
    
public voidtestXercesIsPresent()

        XMLReader xerces;
        xerces = XMLReaderFactory.createXMLReader(
                        "org.apache.xerces.parsers.SAXParser");
        assertNotNull(xerces);