Search in sources :

Example 1 with LSDocumentBuilderFactory

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

the class TestDefaultLSAltConfig method suite.

/**
     * Create a new instance of the test suite
     * @return test suite
     * @throws Exception if tests or implementation not loaded
     */
public static TestSuite suite() throws Exception {
    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.xpath.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 2 with LSDocumentBuilderFactory

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

the class TestDefaultLS method suite.

/**
     * Create instance of test suite.
     * 
     * @return test suite
     * @throws Exception if tests or implementation could not be loaded
     */
public static TestSuite suite() throws Exception {
    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.core.alltests");
    Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
    DOMTestDocumentBuilderFactory factory = new LSDocumentBuilderFactory(JAXPDOMTestDocumentBuilderFactory.getConfiguration1());
    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 3 with LSDocumentBuilderFactory

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

the class TestDefaultLSAltConfig method suite.

/**
     * Create a new instance of the test suite
     * @return test suite
     * @throws Exception if tests or implementation not loaded
     */
public static TestSuite suite() throws Exception {
    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.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)

Example 4 with LSDocumentBuilderFactory

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

the class TestDefaultLS method suite.

/**
     * Create instance of test suite.
     * 
     * @return test suite
     * @throws Exception if tests or implementation could not be loaded
     */
public static TestSuite suite() throws Exception {
    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.ls.alltests");
    Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
    DOMTestDocumentBuilderFactory factory = new LSDocumentBuilderFactory(JAXPDOMTestDocumentBuilderFactory.getConfiguration1());
    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 5 with LSDocumentBuilderFactory

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

the class TestDefaultLSAltConfig method suite.

/**
     * Create a new instance of the test suite
     * @return test suite
     * @throws Exception if tests or implementation not loaded
     */
public static TestSuite suite() throws Exception {
    Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.w3c.domts.level3.validation.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

Constructor (java.lang.reflect.Constructor)17 DOMTestDocumentBuilderFactory (org.w3c.domts.DOMTestDocumentBuilderFactory)17 JAXPDOMTestDocumentBuilderFactory (org.w3c.domts.JAXPDOMTestDocumentBuilderFactory)17 JUnitTestSuiteAdapter (org.w3c.domts.JUnitTestSuiteAdapter)17 LSDocumentBuilderFactory (org.w3c.domts.LSDocumentBuilderFactory)17