Constructor
Class testClass =
ClassLoader.getSystemClassLoader().loadClass(
"org.w3c.domts.level2.core.alltests");
Constructor testConstructor =
testClass.getConstructor(
new Class[] { DOMTestDocumentBuilderFactory.class });
DocumentBuilderFactory oracleFactory =
(DocumentBuilderFactory) ClassLoader
.getSystemClassLoader()
.loadClass("oracle.xml.jaxp.JXDocumentBuilderFactory")
.newInstance();
DOMTestDocumentBuilderFactory factory =
new JAXPDOMTestDocumentBuilderFactory(
oracleFactory,
JAXPDOMTestDocumentBuilderFactory.getConfiguration2());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);