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

TestDefaultParserAltConfig

public class TestDefaultParserAltConfig extends TestSuite
Test suite using the default JAXP parser in the alternative 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.getConfiguration2());

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

    return new JUnitTestSuiteAdapter((DOMTestSuite) test);