Search in sources :

Example 1 with XercesHTML2DocumentBuilderFactory

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

the class TestXercesHTML method suite.

public static TestSuite suite() throws Exception {
    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level2.html.alltests");
    Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
    DOMTestDocumentBuilderFactory factory = new XercesHTML2DocumentBuilderFactory(XercesHTML2DocumentBuilderFactory.getConfiguration1());
    Object test = testConstructor.newInstance(new Object[] { factory });
    return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
Also used : XercesHTML2DocumentBuilderFactory(org.w3c.domts.XercesHTML2DocumentBuilderFactory) Constructor(java.lang.reflect.Constructor) JUnitTestSuiteAdapter(org.w3c.domts.JUnitTestSuiteAdapter) DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory)

Aggregations

Constructor (java.lang.reflect.Constructor)1 DOMTestDocumentBuilderFactory (org.w3c.domts.DOMTestDocumentBuilderFactory)1 JUnitTestSuiteAdapter (org.w3c.domts.JUnitTestSuiteAdapter)1 XercesHTML2DocumentBuilderFactory (org.w3c.domts.XercesHTML2DocumentBuilderFactory)1