1 /* 2 * Copyright (c) 2001-2004 World Wide Web Consortium, 3 * (Massachusetts Institute of Technology, Institut National de 4 * Recherche en Informatique et en Automatique, Keio University). All 5 * Rights Reserved. This program is distributed under the W3C's Software 6 * Intellectual Property License. This program is distributed in the 7 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 8 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 9 * PURPOSE. 10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details. 11 */ 12 13 /* 14 $Log: DOMTestSuite.java,v $ 15 Revision 1.4 2004/03/11 01:44:21 dom-ts-4 16 Checkstyle fixes (bug 592) 17 18 Revision 1.3 2002/02/03 04:22:35 dom-ts-4 19 DOM4J and Batik support added. 20 Rework of parser settings 21 22 Revision 1.2 2001/07/23 04:52:20 dom-ts-4 23 Initial test running using JUnit. 24 25 */ 26 27 package org.w3c.domts; 28 29 /** 30 * Abstract base class for all test suites 31 * (that is any collection of DOMTest's) 32 * 33 * @author Curt Arnold 34 */ 35 public abstract class DOMTestSuite 36 extends DOMTest { 37 /** 38 * This constructor is used for suites that 39 * assert one or more implementation attributes or 40 * features. setLibrary should be called before 41 * the completion of the constructor in the derived class. 42 */ 43 protected DOMTestSuite() { 44 } 45 46 /** 47 * This constructor is used for suites that make no 48 * additional requirements on the parser configuration. 49 * @param factory may not be null 50 */ 51 protected DOMTestSuite(DOMTestDocumentBuilderFactory factory) { 52 super(factory); 53 } 54 55 /** 56 * Adds a test to the test suite. This method can 57 * only be run after the test suite has been attached 58 * to a test framework since each framework implements 59 * test suites in different manners. 60 */ 61 abstract public void build(DOMTestSink sink); 62 } 63