FileDocCategorySizeDatePackage
TestOracleAltConfig.javaAPI DocAndroid 1.5 API2377Wed May 06 22:41:04 BST 2009org.w3c.domts.level2.events

TestOracleAltConfig

public class TestOracleAltConfig extends TestSuite
Test suite that runs all DOM L2 Events tests using the Oracle Parser for Java in an alternative configuration.
author
Curt Arnold

Fields Summary
Constructors Summary
Methods Summary
public static junit.framework.TestSuitesuite()
Constructor

return
test suite
throws
Exception

                Class testClass =
                        ClassLoader.getSystemClassLoader().loadClass(
                                "org.w3c.domts.level2.events.alltests");
                Constructor testConstructor =
                        testClass.getConstructor(
                                new Class[] { DOMTestDocumentBuilderFactory.class });

                DocumentBuilderFactory oracleFactory =
                        (DocumentBuilderFactory) ClassLoader
                                .getSystemClassLoader()
                                .loadClass("oracle.xml.jaxp.JXDocumentBuilderFactory")
                                .newInstance();

                DOMTestDocumentBuilderFactory factory =
                        new JAXPDOMTestDocumentBuilderFactory(
                                oracleFactory,
                                JAXPDOMTestDocumentBuilderFactory.getConfiguration2());

                Object test = testConstructor.newInstance(new Object[] { factory });

                return new JUnitTestSuiteAdapter((DOMTestSuite) test);