org.w3c.domts
public abstract class DOMTestCase extends DOMTest
Constructor Summary | |
---|---|
DOMTestCase()
This constructor is for DOMTestCase's that make specific demands for
parser configuration. setFactory should be called before the end of the
tests constructor to set the factory. | |
DOMTestCase(DOMTestDocumentBuilderFactory factory)
This constructor is for DOMTestCase's that do not add any requirements
for parser configuration.
|
Method Summary | |
---|---|
void | assertEqualAutoCase(String context, String assertID, Collection expected, Collection actual)
Asserts that each entry in actual is matched with an entry in expected
that only differs by case. |
void | assertEquals(String assertID, String expected, String actual)
Asserts that expected.equals(actual) is true
|
void | assertEquals(String assertID, int expected, int actual)
Asserts that values of expected and actual are equal.
|
void | assertEquals(String assertID, double expected, double actual)
Asserts that values of expected and actual are equal.
|
void | assertEquals(String assertID, boolean expected, boolean actual)
Asserts that values of expected and actual are equal.
|
void | assertEquals(String assertID, Collection expected, NodeList actual)
Asserts that each entry in actual exactly matches with an entry in
expected. |
void | assertEquals(String assertID, Collection expected, Collection actual)
Asserts that each entry in actual exactly matches with an entry in
expected. |
void | assertEqualsAutoCase(String context, String assertID, String expected, String actual)
Asserts that expected.equalsIgnoreCase(actual) is true
|
void | assertEqualsAutoCase(String context, String assertID, List expected, List actual)
Asserts that each entry in actual is matched with an entry in expected
that only differs by case. |
void | assertEqualsIgnoreCase(String assertID, String expected, String actual)
Asserts that expected.equalsIgnoreCase(actual) is true
|
void | assertEqualsIgnoreCase(String assertID, Collection expected, Collection actual)
Asserts that each entry in actual is matched with an entry in expected
that only differs by case. |
void | assertEqualsIgnoreCase(String assertID, List expected, List actual)
Asserts that each entry in actual is matched with an entry in expected
that only differs by case. |
void | assertFalse(String assertID, boolean actual)
Asserts that actual==false
|
void | assertFalse(String assertID, Object actual)
Asserts that actual==false
|
void | assertInstanceOf(String assertID, Class cls, Object obj)
Asserts that obj is an instance of cls
|
void | assertNotEquals(String assertID, String expected, String actual)
Asserts that values of expected and actual are not equal.
|
void | assertNotEquals(String assertID, int expected, int actual)
Asserts that values of expected and actual are not equal.
|
void | assertNotEquals(String assertID, double expected, double actual)
Asserts that values of expected and actual are not equal.
|
void | assertNotEqualsAutoCase(String context, String assertID, String expected, String actual)
Asserts that expected.equalsIgnoreCase(actual) is false
|
void | assertNotEqualsIgnoreCase(String assertID, String expected, String actual)
Asserts that expected.equalsIgnoreCase(actual) is false
|
void | assertNotNull(String assertID, Object actual)
Asserts that actual ! |
void | assertNull(String assertID, Object actual)
Asserts that actual == null
|
void | assertSame(String assertID, Object expected, Object actual)
Asserts that actual and expected are the same object
|
void | assertSize(String assertID, int expectedSize, NodeList collection)
Asserts that the length of the collection is the expected size.
|
void | assertSize(String assertID, int expectedSize, NamedNodeMap collection)
Asserts that the length of the collection is the expected size.
|
void | assertSize(String assertID, int expectedSize, Collection collection)
Asserts that the length of the collection is the expected size.
|
void | assertTrue(String assertID, boolean actual)
Asserts that actual==true
|
void | assertTrue(String assertID, Object actual)
Asserts that actual==true
|
void | assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual)
Asserts aspects of a URI
|
static void | doMain(Class testClass, String[] args)
This method is called by the main() for each test and locates the
appropriate test framework and runs the specified test
|
boolean | equals(String expected, String actual)
Compares the values of actual and expected.
|
boolean | equals(int expected, int actual)
Compares the values of actual and expected.
|
boolean | equals(double expected, double actual)
Compares the values of actual and expected.
|
boolean | equals(Collection expected, Collection actual)
Compares the values in actual and expected ignoring order.
|
boolean | equals(List expected, List actual)
Compares the values in actual and expected.
|
boolean | equalsAutoCase(String context, String expected, String actual)
Compares the value of actual and expected ignoring case.
|
boolean | equalsAutoCase(String context, Collection expected, Collection actual)
Compares the values in actual and expected ignoring case and order.
|
boolean | equalsAutoCase(String context, List expected, List actual)
Compares the values in actual and expected ignoring case.
|
boolean | equalsIgnoreCase(String expected, String actual)
Compares the value of actual and expected ignoring case.
|
boolean | equalsIgnoreCase(Collection expected, Collection actual)
Compares the values in actual and expected ignoring case and order.
|
boolean | equalsIgnoreCase(List expected, List actual)
Compares the values in actual and expected ignoring case.
|
void | fail(String assertID)
Fail test
|
abstract void | runTest()
Body of test
|
boolean | same(Object expected, Object actual)
Compares the identity of actual and expected.
|
void | setFramework(DOMTestFramework framework)
Sets test framework to be used by test.
|
int | size(Collection collection)
Gets the size of the collection
|
int | size(NamedNodeMap collection)
Gets the size of the collection
|
int | size(NodeList collection)
Gets the size of the collection
|
void | wait(int millisecond)
Wait
|
Parameters: factory document factory to be used by test, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion obj object cls class, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value expected Expected value, may not be null.
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion expectedSize expected size collection collection
Parameters: assertID identifier of assertion expectedSize expected size collection collection
Parameters: assertID identifier of assertion expectedSize expected size collection collection
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion actual actual value
Parameters: assertID identifier of assertion scheme Expected scheme, for example, "file". If null, scheme is ignored. path Expected path, for example, "/DOM/Test". If null, path is ignored. host Expected host, for example, "www.w3.org". If null, host is ignored. file Expected file, for example, "staff.xml". If null, file is ignored. name Expected name, for example, "staff". If null, name is ignored. name Expected name, for example, "staff". If null, name is ignored. isAbsolute if Boolean.TRUE, URI must be absolute. Null indicates no assertion. actual URI to be tested.
Parameters: testClass test class args arguments to test class
Parameters: expected expected actual actual
Returns: true if actual and expected are equal.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal ignoring case.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal ignoring case.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal ignoring case.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal ignoring case.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal ignoring case.
Parameters: expected expected actual actual
Returns: true if actual and expected are equal ignoring case.
Parameters: assertID identifier of assertion
Throws: Throwable
Parameters: expected expected actual actual
Returns: true if actual and expected are the same object.
Parameters: framework
Parameters: collection collection, may not be null.
Returns: size of collection
Parameters: collection collection, may not be null.
Returns: size of collection
Parameters: collection collection, may not be null.
Returns: size of collection
Parameters: millisecond milliseconds to wait