use of org.w3c.domts.JAXPDOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestXercesAltConfig method suite.
public static TestSuite suite() throws Exception {
Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level1.core.alltests");
Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
DocumentBuilderFactory xercesFactory = (DocumentBuilderFactory) ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();
DOMTestDocumentBuilderFactory factory = new JAXPDOMTestDocumentBuilderFactory(xercesFactory, JAXPDOMTestDocumentBuilderFactory.getConfiguration2());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.JAXPDOMTestDocumentBuilderFactory in project robovm by robovm.
the class AllTests_Level2 method suite.
/*public static void run() {
TestRunner.main(new String[] {Main_AllTests.class.getName()});
}*/
public static final Test suite() {
// from http://www.w3.org/DOM/Test/
// Level 2 Core tests
DOMTestSuite domSuite;
try {
DOMTestDocumentBuilderFactory factory1 = new JAXPDOMTestDocumentBuilderFactory(null, JAXPDOMTestDocumentBuilderFactory.getConfiguration1());
// android: coalescing, epand, ignorewhitespace, namespace, NOT validation
domSuite = new org.w3c.domts.level2.core.alltests(factory1);
} catch (Exception e) {
throw new RuntimeException("problem creating dom test suite", e);
}
TestSuite suite = new JUnitTestSuiteAdapter(domSuite);
return suite;
}
use of org.w3c.domts.JAXPDOMTestDocumentBuilderFactory in project robovm by robovm.
the class TestOracle 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.getConfiguration1());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.JAXPDOMTestDocumentBuilderFactory 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.JAXPDOMTestDocumentBuilderFactory 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);
}
Aggregations