Search in sources :

Example 1 with XercesHTMLDocumentBuilderFactory

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

the class TestXercesHTML method suite.

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

Aggregations

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