FileDocCategorySizeDatePackage
TestDefaultParser.javaAPI DocAndroid 1.5 API1744Wed May 06 22:41:04 BST 2009org.w3c.domts.level2.core

TestDefaultParser

public class TestDefaultParser extends TestSuite
Test suite using the default JAXP parser in the default configuration

Fields Summary
Constructors Summary
Methods Summary
public static junit.framework.TestSuitesuite()
Create a new instance of the test suite

return
new test suite
exception
Exception if tests or implementation can be created.

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

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

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

    return new JUnitTestSuiteAdapter((DOMTestSuite) test);