FileDocCategorySizeDatePackage
TestOracle.javaAPI DocAndroid 1.5 API2041Wed May 06 22:41:04 BST 2009org.w3c.domts.level3.ls

TestOracle

public class TestOracle extends TestSuite
A JUnit test suite that will run all Load and Save tests using the Oracle XML Parser for Java
author
Curt Arnold

Fields Summary
Constructors Summary
Methods Summary
public static junit.framework.TestSuitesuite()
Constructs the test suite

return
test suite
throws
Exception can throw class load exceptions if class path does not contain dom3-ls.jar or xmlparserv2.jar

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

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

		DOMTestDocumentBuilderFactory factory =
			new JAXPDOMTestDocumentBuilderFactory(
				jxFactory,
				JAXPDOMTestDocumentBuilderFactory.getConfiguration1());

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

		return new JUnitTestSuiteAdapter((DOMTestSuite) test);