Search in sources :

Example 1 with JTidyDocumentBuilderFactory

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

the class TestJTidy 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 });
    DOMTestDocumentBuilderFactory factory = new JTidyDocumentBuilderFactory(new DocumentBuilderSetting[0]);
    Object test = testConstructor.newInstance(new Object[] { factory });
    return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
Also used : Constructor(java.lang.reflect.Constructor) JUnitTestSuiteAdapter(org.w3c.domts.JUnitTestSuiteAdapter) JTidyDocumentBuilderFactory(org.w3c.domts.JTidyDocumentBuilderFactory) DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory)

Example 2 with JTidyDocumentBuilderFactory

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

the class TestJTidy method suite.

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

Aggregations

Constructor (java.lang.reflect.Constructor)2 DOMTestDocumentBuilderFactory (org.w3c.domts.DOMTestDocumentBuilderFactory)2 JTidyDocumentBuilderFactory (org.w3c.domts.JTidyDocumentBuilderFactory)2 JUnitTestSuiteAdapter (org.w3c.domts.JUnitTestSuiteAdapter)2