FileDocCategorySizeDatePackage
TestDefaultParser.javaAPI DocAndroid 1.5 API1756Wed May 06 22:41:04 BST 2009org.w3c.domts.level3.validation

TestDefaultParser

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

(Omit source code)

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.level3.validation.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);