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.level1.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);
}
use of org.w3c.domts.JUnitTestSuiteAdapter in project robovm by robovm.
the class TestDefaultParser 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 JAXPDOMTestDocumentBuilderFactory(null, JAXPDOMTestDocumentBuilderFactory.getConfiguration1());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.JUnitTestSuiteAdapter in project robovm by robovm.
the class TestDefaultParserAltConfig method suite.
/**
* Create a new instance of the test suite
* @return new test suite
* @exception Exception if tests or implementation can be created.
*/
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 JAXPDOMTestDocumentBuilderFactory(null, JAXPDOMTestDocumentBuilderFactory.getConfiguration2());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.JUnitTestSuiteAdapter in project robovm by robovm.
the class TestGNUJAXP 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 });
DocumentBuilderFactory gnujaxpFactory = (DocumentBuilderFactory) ClassLoader.getSystemClassLoader().loadClass("gnu.xml.dom.JAXPFactory").newInstance();
DOMTestDocumentBuilderFactory factory = new JAXPDOMTestDocumentBuilderFactory(gnujaxpFactory, JAXPDOMTestDocumentBuilderFactory.getConfiguration1());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);
}
use of org.w3c.domts.JUnitTestSuiteAdapter 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);
}
Aggregations