FileDocCategorySizeDatePackage
TestDefaultLSAltConfig.javaAPI DocAndroid 1.5 API1849Wed May 06 22:41:04 BST 2009org.w3c.domts.level3.xpath

TestDefaultLSAltConfig

public class TestDefaultLSAltConfig extends TestSuite
Test suite that runs all DOM L3 XPath tests using a parser provided by DOM L3 XPath bootstrapping in alternative configuration
author
Curt Arnold

Fields Summary
Constructors Summary
Methods Summary
public static junit.framework.TestSuitesuite()
Create a new instance of the test suite

return
test suite
throws
Exception if tests or implementation not loaded

		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);