FileDocCategorySizeDatePackage
TestXerces.javaAPI DocAndroid 1.5 API1849Wed May 06 22:41:04 BST 2009org.w3c.domts.level3.ls

TestXerces

public class TestXerces extends TestSuite
A JUnit test suite that will run all Load and Save tests using Xerces-J
author
Curt Arnold

Fields Summary
Constructors Summary
Methods Summary
public static junit.framework.TestSuitesuite()

    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.ls.alltests");
    Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });

    DocumentBuilderFactory xercesFactory = (DocumentBuilderFactory)
      ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();

    DOMTestDocumentBuilderFactory factory =
        new JAXPDOMTestDocumentBuilderFactory(xercesFactory,
          JAXPDOMTestDocumentBuilderFactory.getConfiguration1());


    Object test = testConstructor.newInstance(new Object[] { factory });

    return new JUnitTestSuiteAdapter((DOMTestSuite) test);