Main Page Packages Class Hierarchy Compound List File List Compound Members

# DOMTestFramework.java

Go to the documentation of this file.

    00001 /*
    00002  * Copyright (c) 2001 World Wide Web Consortium,
    00003  * (Massachusetts Institute of Technology, Institut National de
    00004  * Recherche en Informatique et en Automatique, Keio University). All
    00005  * Rights Reserved. This program is distributed under the W3C's Software
    00006  * Intellectual Property License. This program is distributed in the
    00007  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
    00008  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00009  * PURPOSE.
    00010  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
    00011  */
    00012
    00013   /*
    00014  $Log: DOMTestFramework.java,v $
    00015  Revision 1.6  2001/10/18 07:58:17  dom-ts-4
    00016  assertURIEquals added
    00017  Can now run from dom1-core.jar
    00018
    00019  Revision 1.5  2001/08/22 22:12:49  dom-ts-4
    00020  Now passing all tests with default settings
    00021
    00022  Revision 1.4  2001/07/23 04:52:20  dom-ts-4
    00023  Initial test running using JUnit.
    00024
    00025  */
    00026
    00027
    00028 package org.w3c.domts;
    00029
    00030 import javax.xml.parsers.*;
    00031 import org.w3c.dom.*;
    00032 import java.lang.*;
    00033 import java.util.*;
    00034 import org.xml.sax.*;
    00035
    00039 public interface DOMTestFramework {
    00040         boolean hasFeature(DocumentBuilder docBuilder,
    00041           String feature,
    00042           String version);
    00043         void wait(int millisecond);
    00044         void assertTrue(DOMTestCase test, String assertID, boolean actual);
    00045         void assertFalse(DOMTestCase test, String assertID, boolean actual);
    00046         void assertNull(DOMTestCase test, String assertID, Object actual);
    00047         void assertNotNull(DOMTestCase test, String assertID, Object actual);
    00048         void assertSame(DOMTestCase test, String assertID, Object expected, Object actual);
    00049         void assertInstanceOf(DOMTestCase test, String assertID, Object obj, Class cls);
    00050         void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection);
    00051         void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection);
    00052         void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection);
    00053         void assertEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actual);
    00054         void assertEqualsIgnoreCase(DOMTestCase test, String assertID, Collection expected, Collection actual);
    00055         void assertEqualsIgnoreCase(DOMTestCase test, String assertID, List expected, List actual);
    00056         void assertEquals(DOMTestCase test, String assertID, String expected, String actual);
    00057         void assertEquals(DOMTestCase test, String assertID, int expected, int actual);
    00058         void assertEquals(DOMTestCase test, String assertID, double expected, double actual);
    00059         void assertEquals(DOMTestCase test, String assertID, Collection expected, Collection actual);
    00060         void assertNotEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actual);
    00061         void assertNotEquals(DOMTestCase test, String assertID, String expected, String actual);
    00062         void assertNotEquals(DOMTestCase test, String assertID, int expected, int actual);
    00063         void assertNotEquals(DOMTestCase test, String assertID, double expected, double actual);
    00064     void assertURIEquals(DOMTestCase test, String assertID, String scheme, String path, String host, String file, String query, String fragment, Boolean isAbsolute, String actual) throws java.net.MalformedURLException;
    00065
    00066
    00067         boolean same(Object expected, Object actual);
    00068         boolean equalsIgnoreCase(String expected, String actual);
    00069         boolean equalsIgnoreCase(Collection expected, Collection actual);
    00070         boolean equalsIgnoreCase(List expected, List actual);
    00071         boolean equals(String expected, String actual);
    00072         boolean equals(int expected, int actual);
    00073         boolean equals(double expected, double actual);
    00074         boolean equals(Collection expected, Collection actual);
    00075         boolean equals(List expected, List actual);
    00076         int size(Collection collection);
    00077         int size(NamedNodeMap collection);
    00078         int size(NodeList collection);
    00079 }
    00080