Search in sources :

Example 36 with JUnitTestSuiteAdapter

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

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

Example 37 with JUnitTestSuiteAdapter

use of org.w3c.domts.JUnitTestSuiteAdapter 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)

Example 38 with JUnitTestSuiteAdapter

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

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

Example 39 with JUnitTestSuiteAdapter

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

the class TestDOM4J 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 DOM4JTestDocumentBuilderFactory(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) DOM4JTestDocumentBuilderFactory(org.w3c.domts.DOM4JTestDocumentBuilderFactory) DOMTestDocumentBuilderFactory(org.w3c.domts.DOMTestDocumentBuilderFactory)

Example 40 with JUnitTestSuiteAdapter

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

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

Aggregations

DOMTestDocumentBuilderFactory (org.w3c.domts.DOMTestDocumentBuilderFactory)75 JUnitTestSuiteAdapter (org.w3c.domts.JUnitTestSuiteAdapter)75 Constructor (java.lang.reflect.Constructor)73 JAXPDOMTestDocumentBuilderFactory (org.w3c.domts.JAXPDOMTestDocumentBuilderFactory)60 DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)30 LSDocumentBuilderFactory (org.w3c.domts.LSDocumentBuilderFactory)17 BatikTestDocumentBuilderFactory (org.w3c.domts.BatikTestDocumentBuilderFactory)7 TestSuite (junit.framework.TestSuite)2 DOM4JTestDocumentBuilderFactory (org.w3c.domts.DOM4JTestDocumentBuilderFactory)2 DOMTestSuite (org.w3c.domts.DOMTestSuite)2 JTidyDocumentBuilderFactory (org.w3c.domts.JTidyDocumentBuilderFactory)2 XalanDOMTestDocumentBuilderFactory (org.w3c.domts.XalanDOMTestDocumentBuilderFactory)2 XercesHTML2DocumentBuilderFactory (org.w3c.domts.XercesHTML2DocumentBuilderFactory)1 XercesHTMLDocumentBuilderFactory (org.w3c.domts.XercesHTMLDocumentBuilderFactory)1