FileDocCategorySizeDatePackage
TestDefaultLS.javaAPI DocAndroid 1.5 API1817Wed May 06 22:41:04 BST 2009org.w3c.domts.level3.core

TestDefaultLS

public class TestDefaultLS extends TestSuite
Test suite that runs all DOM L3 Core tests using the a parser provided by DOM L3 Core bootstrapping.
author
Curt Arnold

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

return
test suite
throws
Exception if tests or implementation could not be loaded

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