2 * Copyright (c) 2001-2004 World Wide Web Consortium, (Massachusetts Institute
3 * of Technology, Institut National de Recherche en Informatique et en
4 * Automatique, Keio University). All Rights Reserved. This program is
5 * distributed under the W3C's Software Intellectual Property License. This
6 * program is distributed in the hope that it will be useful, but WITHOUT ANY
7 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8 * FOR A PARTICULAR PURPOSE. See W3C License
9 * http://www.w3.org/Consortium/Legal/ for more details.
12 package org.w3c.domts.level2.events;
14 import java.lang.reflect.Constructor;
16 import junit.framework.TestSuite;
19 import org.w3c.domts.DOMTestDocumentBuilderFactory;
20 import org.w3c.domts.DOMTestSuite;
21 import org.w3c.domts.LSDocumentBuilderFactory;
22 import org.w3c.domts.JAXPDOMTestDocumentBuilderFactory;
23 import org.w3c.domts.JUnitTestSuiteAdapter;
26 * Test suite that runs all DOM L2 Events tests using the
27 * Default LS parser in an alternate configuration
32 public class TestDefaultLSAltConfig extends TestSuite {
34 public static TestSuite suite() throws Exception {
36 ClassLoader.getSystemClassLoader().loadClass(
37 "org.w3c.domts.level2.events.alltests");
38 Constructor testConstructor =
39 testClass.getConstructor(
40 new Class[] { DOMTestDocumentBuilderFactory.class });
42 DOMTestDocumentBuilderFactory factory =
43 new LSDocumentBuilderFactory(
44 JAXPDOMTestDocumentBuilderFactory.getConfiguration2());
46 Object test = testConstructor.newInstance(new Object[] { factory });
48 return new JUnitTestSuiteAdapter((DOMTestSuite) test);