Search in sources :

Example 1 with XalanDOMTestDocumentBuilderFactory

use of org.w3c.domts.XalanDOMTestDocumentBuilderFactory 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);
}
Also used : DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory) DocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory) XalanDOMTestDocumentBuilderFactory(org.w3c.domts.XalanDOMTestDocumentBuilderFactory) XalanDOMTestDocumentBuilderFactory(org.w3c.domts.XalanDOMTestDocumentBuilderFactory) Constructor(java.lang.reflect.Constructor) JUnitTestSuiteAdapter(org.w3c.domts.JUnitTestSuiteAdapter) DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory) XalanDOMTestDocumentBuilderFactory(org.w3c.domts.XalanDOMTestDocumentBuilderFactory)

Example 2 with XalanDOMTestDocumentBuilderFactory

use of org.w3c.domts.XalanDOMTestDocumentBuilderFactory in project robovm by robovm.

the class TestXalanAltConfig 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.getConfiguration2());
    Object test = testConstructor.newInstance(new Object[] { factory });
    return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
Also used : DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory) DocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory) XalanDOMTestDocumentBuilderFactory(org.w3c.domts.XalanDOMTestDocumentBuilderFactory) XalanDOMTestDocumentBuilderFactory(org.w3c.domts.XalanDOMTestDocumentBuilderFactory) Constructor(java.lang.reflect.Constructor) JUnitTestSuiteAdapter(org.w3c.domts.JUnitTestSuiteAdapter) DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory) XalanDOMTestDocumentBuilderFactory(org.w3c.domts.XalanDOMTestDocumentBuilderFactory)

Aggregations

Constructor (java.lang.reflect.Constructor)2 DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)2 DOMTestDocumentBuilderFactory (org.w3c.domts.DOMTestDocumentBuilderFactory)2 JUnitTestSuiteAdapter (org.w3c.domts.JUnitTestSuiteAdapter)2 XalanDOMTestDocumentBuilderFactory (org.w3c.domts.XalanDOMTestDocumentBuilderFactory)2