use of org.w3c.domts.DOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestOracleAltConfig method suite.
/**
* Constructor
* @return test suite
* @throws Exception
*/
public static TestSuite suite() throws Exception {
Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.validation.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);
}
use of org.w3c.domts.DOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestBatik method suite.
/**
* Factory method for suite.
*
* @return suite
* @throws Exception if Batik is not available or could not be instantiated
*/
public static TestSuite suite() throws Exception {
Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.xpath.alltests");
Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
DOMTestDocumentBuilderFactory factory = new BatikTestDocumentBuilderFactory(new DocumentBuilderSetting[0]);
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.DOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestDefaultLSAltConfig method suite.
/**
* Create a new instance of the test suite
* @return test suite
* @throws Exception if tests or implementation not loaded
*/
public static TestSuite suite() throws Exception {
Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.xpath.alltests");
Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
DOMTestDocumentBuilderFactory factory = new LSDocumentBuilderFactory(JAXPDOMTestDocumentBuilderFactory.getConfiguration2());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.DOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestDefaultParserAltConfig method suite.
/**
* Create a new instance of the test suite
* @return new test suite
* @exception Exception if tests or implementation can be created.
*/
public static TestSuite suite() throws Exception {
Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.xpath.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);
}
use of org.w3c.domts.DOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestXalan method suite.
public static TestSuite suite() throws Exception {
Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.xpath.alltests");
Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance();
DOMTestDocumentBuilderFactory factory = new XalanDOMTestDocumentBuilderFactory(jaxpFactory, XalanDOMTestDocumentBuilderFactory.getConfiguration1());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
Aggregations