|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.domts.DOMTest
org.w3c.domts.DOMTestCase
public abstract class DOMTestCase
This is an abstract base class for generated DOM tests
| Constructor Summary | |
|---|---|
DOMTestCase()
This constructor is for DOMTestCase's that make specific demands for parser configuration. |
|
DOMTestCase(DOMTestDocumentBuilderFactory factory)
This constructor is for DOMTestCase's that do not add any requirements for parser configuration. |
|
| Method Summary | |
|---|---|
void |
assertEqualAutoCase(java.lang.String context,
java.lang.String assertID,
java.util.Collection expected,
java.util.Collection actual)
Asserts that each entry in actual is matched with an entry in expected that only differs by case. |
void |
assertEquals(java.lang.String assertID,
boolean expected,
boolean actual)
Asserts that values of expected and actual are equal. |
void |
assertEquals(java.lang.String assertID,
java.util.Collection expected,
java.util.Collection actual)
Asserts that each entry in actual exactly matches with an entry in expected. |
void |
assertEquals(java.lang.String assertID,
java.util.Collection expected,
org.w3c.dom.NodeList actual)
Asserts that each entry in actual exactly matches with an entry in expected. |
void |
assertEquals(java.lang.String assertID,
double expected,
double actual)
Asserts that values of expected and actual are equal. |
void |
assertEquals(java.lang.String assertID,
int expected,
int actual)
Asserts that values of expected and actual are equal. |
void |
assertEquals(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
Asserts that expected.equals(actual) is true |
void |
assertEqualsAutoCase(java.lang.String context,
java.lang.String assertID,
java.util.List expected,
java.util.List actual)
Asserts that each entry in actual is matched with an entry in expected that only differs by case. |
void |
assertEqualsAutoCase(java.lang.String context,
java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
Asserts that expected.equalsIgnoreCase(actual) is true |
void |
assertEqualsIgnoreCase(java.lang.String assertID,
java.util.Collection expected,
java.util.Collection actual)
Asserts that each entry in actual is matched with an entry in expected that only differs by case. |
void |
assertEqualsIgnoreCase(java.lang.String assertID,
java.util.List expected,
java.util.List actual)
Asserts that each entry in actual is matched with an entry in expected that only differs by case. |
void |
assertEqualsIgnoreCase(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
Asserts that expected.equalsIgnoreCase(actual) is true |
void |
assertFalse(java.lang.String assertID,
boolean actual)
Asserts that actual==false |
void |
assertFalse(java.lang.String assertID,
java.lang.Object actual)
Asserts that actual==false |
void |
assertInstanceOf(java.lang.String assertID,
java.lang.Class cls,
java.lang.Object obj)
Asserts that obj is an instance of cls |
void |
assertNotEquals(java.lang.String assertID,
double expected,
double actual)
Asserts that values of expected and actual are not equal. |
void |
assertNotEquals(java.lang.String assertID,
int expected,
int actual)
Asserts that values of expected and actual are not equal. |
void |
assertNotEquals(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
Asserts that values of expected and actual are not equal. |
void |
assertNotEqualsAutoCase(java.lang.String context,
java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
Asserts that expected.equalsIgnoreCase(actual) is false |
void |
assertNotEqualsIgnoreCase(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
Asserts that expected.equalsIgnoreCase(actual) is false |
void |
assertNotNull(java.lang.String assertID,
java.lang.Object actual)
Asserts that actual != null |
void |
assertNull(java.lang.String assertID,
java.lang.Object actual)
Asserts that actual == null |
void |
assertSame(java.lang.String assertID,
java.lang.Object expected,
java.lang.Object actual)
Asserts that actual and expected are the same object |
void |
assertSize(java.lang.String assertID,
int expectedSize,
java.util.Collection collection)
Asserts that the length of the collection is the expected size. |
void |
assertSize(java.lang.String assertID,
int expectedSize,
org.w3c.dom.NamedNodeMap collection)
Asserts that the length of the collection is the expected size. |
void |
assertSize(java.lang.String assertID,
int expectedSize,
org.w3c.dom.NodeList collection)
Asserts that the length of the collection is the expected size. |
void |
assertTrue(java.lang.String assertID,
boolean actual)
Asserts that actual==true |
void |
assertTrue(java.lang.String assertID,
java.lang.Object actual)
Asserts that actual==true |
void |
assertURIEquals(java.lang.String assertID,
java.lang.String scheme,
java.lang.String path,
java.lang.String host,
java.lang.String file,
java.lang.String name,
java.lang.String query,
java.lang.String fragment,
java.lang.Boolean isAbsolute,
java.lang.String actual)
Asserts aspects of a URI |
static void |
doMain(java.lang.Class testClass,
java.lang.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(java.util.Collection expected,
java.util.Collection actual)
Compares the values in actual and expected ignoring order. |
boolean |
equals(double expected,
double actual)
Compares the values of actual and expected. |
boolean |
equals(int expected,
int actual)
Compares the values of actual and expected. |
boolean |
equals(java.util.List expected,
java.util.List actual)
Compares the values in actual and expected. |
boolean |
equals(java.lang.String expected,
java.lang.String actual)
Compares the values of actual and expected. |
boolean |
equalsAutoCase(java.lang.String context,
java.util.Collection expected,
java.util.Collection actual)
Compares the values in actual and expected ignoring case and order. |
boolean |
equalsAutoCase(java.lang.String context,
java.util.List expected,
java.util.List actual)
Compares the values in actual and expected ignoring case. |
boolean |
equalsAutoCase(java.lang.String context,
java.lang.String expected,
java.lang.String actual)
Compares the value of actual and expected ignoring case. |
boolean |
equalsIgnoreCase(java.util.Collection expected,
java.util.Collection actual)
Compares the values in actual and expected ignoring case and order. |
boolean |
equalsIgnoreCase(java.util.List expected,
java.util.List actual)
Compares the values in actual and expected ignoring case. |
boolean |
equalsIgnoreCase(java.lang.String expected,
java.lang.String actual)
Compares the value of actual and expected ignoring case. |
void |
fail(java.lang.String assertID)
Fail test |
abstract void |
runTest()
Body of test |
boolean |
same(java.lang.Object expected,
java.lang.Object actual)
Compares the identity of actual and expected. |
void |
setFramework(DOMTestFramework framework)
Sets test framework to be used by test. |
int |
size(java.util.Collection collection)
Gets the size of the collection |
int |
size(org.w3c.dom.NamedNodeMap collection)
Gets the size of the collection |
int |
size(org.w3c.dom.NodeList collection)
Gets the size of the collection |
void |
wait(int millisecond)
Wait |
| Methods inherited from class org.w3c.domts.DOMTest |
|---|
createStream, createTempURI, createXPathEvaluator, getContentType, getFactory, getImplementation, getMutationCount, getResourceURI, getTargetURI, hasFeature, hasSetting, isCoalescing, isExpandEntityReferences, isHasNullString, isIgnoringElementContentWhitespace, isNamespaceAware, isSigned, isValidating, load, preload, setFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMTestCase()
public DOMTestCase(DOMTestDocumentBuilderFactory factory)
factory - document factory to be used by test, may not be null.| Method Detail |
|---|
public static void doMain(java.lang.Class testClass,
java.lang.String[] args)
testClass - test classargs - arguments to test class
public abstract void runTest()
throws java.lang.Throwable
java.lang.Throwablepublic void setFramework(DOMTestFramework framework)
framework - public void wait(int millisecond)
millisecond - milliseconds to waitpublic void fail(java.lang.String assertID)
assertID - identifier of assertion
public void assertTrue(java.lang.String assertID,
boolean actual)
assertID - identifier of assertionactual - actual value
public void assertTrue(java.lang.String assertID,
java.lang.Object actual)
assertID - identifier of assertionactual - actual value
public void assertFalse(java.lang.String assertID,
boolean actual)
assertID - identifier of assertionactual - actual value
public void assertFalse(java.lang.String assertID,
java.lang.Object actual)
assertID - identifier of assertionactual - actual value
public void assertNull(java.lang.String assertID,
java.lang.Object actual)
assertID - identifier of assertionactual - actual value
public void assertNotNull(java.lang.String assertID,
java.lang.Object actual)
assertID - identifier of assertionactual - actual value
public void assertSame(java.lang.String assertID,
java.lang.Object expected,
java.lang.Object actual)
assertID - identifier of assertionactual - actual value
public void assertInstanceOf(java.lang.String assertID,
java.lang.Class cls,
java.lang.Object obj)
assertID - identifier of assertionobj - objectcls - class, may not be null.
public void assertSize(java.lang.String assertID,
int expectedSize,
org.w3c.dom.NodeList collection)
assertID - identifier of assertionexpectedSize - expected sizecollection - collection
public void assertSize(java.lang.String assertID,
int expectedSize,
org.w3c.dom.NamedNodeMap collection)
assertID - identifier of assertionexpectedSize - expected sizecollection - collection
public void assertSize(java.lang.String assertID,
int expectedSize,
java.util.Collection collection)
assertID - identifier of assertionexpectedSize - expected sizecollection - collection
public void assertEqualsIgnoreCase(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEqualsIgnoreCase(java.lang.String assertID,
java.util.Collection expected,
java.util.Collection actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEqualsIgnoreCase(java.lang.String assertID,
java.util.List expected,
java.util.List actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEqualsAutoCase(java.lang.String context,
java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEqualAutoCase(java.lang.String context,
java.lang.String assertID,
java.util.Collection expected,
java.util.Collection actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEqualsAutoCase(java.lang.String context,
java.lang.String assertID,
java.util.List expected,
java.util.List actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEquals(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEquals(java.lang.String assertID,
int expected,
int actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEquals(java.lang.String assertID,
double expected,
double actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEquals(java.lang.String assertID,
boolean expected,
boolean actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEquals(java.lang.String assertID,
java.util.Collection expected,
org.w3c.dom.NodeList actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertEquals(java.lang.String assertID,
java.util.Collection expected,
java.util.Collection actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertNotEqualsIgnoreCase(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertNotEqualsAutoCase(java.lang.String context,
java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertNotEquals(java.lang.String assertID,
java.lang.String expected,
java.lang.String actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertNotEquals(java.lang.String assertID,
int expected,
int actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertNotEquals(java.lang.String assertID,
double expected,
double actual)
assertID - identifier of assertionactual - actual valueexpected - Expected value, may not be null.
public void assertURIEquals(java.lang.String assertID,
java.lang.String scheme,
java.lang.String path,
java.lang.String host,
java.lang.String file,
java.lang.String name,
java.lang.String query,
java.lang.String fragment,
java.lang.Boolean isAbsolute,
java.lang.String actual)
assertID - identifier of assertionscheme - 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.
public boolean same(java.lang.Object expected,
java.lang.Object actual)
expected - expectedactual - actual
public boolean equalsIgnoreCase(java.lang.String expected,
java.lang.String actual)
expected - expectedactual - actual
public boolean equalsIgnoreCase(java.util.Collection expected,
java.util.Collection actual)
expected - expectedactual - actual
public boolean equalsIgnoreCase(java.util.List expected,
java.util.List actual)
expected - expectedactual - actual
public boolean equalsAutoCase(java.lang.String context,
java.lang.String expected,
java.lang.String actual)
expected - expectedactual - actual
public boolean equalsAutoCase(java.lang.String context,
java.util.Collection expected,
java.util.Collection actual)
expected - expectedactual - actual
public boolean equalsAutoCase(java.lang.String context,
java.util.List expected,
java.util.List actual)
expected - expectedactual - actual
public boolean equals(java.lang.String expected,
java.lang.String actual)
expected - expectedactual - actual
public boolean equals(int expected,
int actual)
expected - expectedactual - actual
public boolean equals(double expected,
double actual)
expected - expectedactual - actual
public boolean equals(java.util.Collection expected,
java.util.Collection actual)
expected - expectedactual - actual
public boolean equals(java.util.List expected,
java.util.List actual)
expected - expectedactual - actual
public int size(java.util.Collection collection)
collection - collection, may not be null.
public int size(org.w3c.dom.NamedNodeMap collection)
collection - collection, may not be null.
public int size(org.w3c.dom.NodeList collection)
collection - collection, may not be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||