org.w3c.domts

Class JUnitTestCaseAdapter

Implemented Interfaces:
DOMTestFramework

public class JUnitTestCaseAdapter
extends TestCase
implements DOMTestFramework

Constructor Summary

JUnitTestCaseAdapter(DOMTestCase test)

Method Summary

void
assertEquals(DOMTestCase test, String assertID, Collection expected, Collection actual)
void
assertEquals(DOMTestCase test, String assertID, String expected, String actual)
void
assertEquals(DOMTestCase test, String assertID, boolean expected, boolean actual)
void
assertEquals(DOMTestCase test, String assertID, double expected, double actual)
void
assertEquals(DOMTestCase test, String assertID, int expected, int actual)
void
assertEqualsIgnoreCase(DOMTestCase test, String assertID, Collection expected, Collection actual)
void
assertEqualsIgnoreCase(DOMTestCase test, String assertID, List expected, List actual)
void
assertEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actual)
void
assertFalse(DOMTestCase test, String assertID, boolean actual)
void
assertInstanceOf(DOMTestCase test, String assertID, Object obj, Class cls)
void
assertNotEquals(DOMTestCase test, String assertID, String expected, String actual)
void
assertNotEquals(DOMTestCase test, String assertID, boolean expected, boolean actual)
void
assertNotEquals(DOMTestCase test, String assertID, double expected, double actual)
void
assertNotEquals(DOMTestCase test, String assertID, int expected, int actual)
void
assertNotEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actual)
void
assertNotNull(DOMTestCase test, String assertID, Object actual)
void
assertNull(DOMTestCase test, String assertID, Object actual)
void
assertSame(DOMTestCase test, String assertID, Object expected, Object actual)
void
assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection)
void
assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection)
void
assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection)
void
assertTrue(DOMTestCase test, String assertID, boolean actual)
boolean
equals(Collection expected, Collection actual)
boolean
equals(List expected, List actual)
boolean
equals(String expected, String actual)
boolean
equals(boolean expected, boolean actual)
boolean
equals(double expected, double actual)
boolean
equals(int expected, int actual)
boolean
equalsIgnoreCase(Collection expected, Collection actual)
boolean
equalsIgnoreCase(List expected, List actual)
boolean
equalsIgnoreCase(String expected, String actual)
void
fail(DOMTestCase test, String assertID)
boolean
hasFeature(DocumentBuilder docBuilder, String feature, String version)
protected void
runTest()
boolean
same(Object expected, Object actual)
int
size(Collection collection)
int
size(NamedNodeMap collection)
int
size(NodeList collection)
void
wait(int millisecond)

Constructor Details

JUnitTestCaseAdapter

public JUnitTestCaseAdapter(DOMTestCase test)

Method Details

assertEquals

public void assertEquals(DOMTestCase test,
                         String assertID,
                         Collection expected,
                         Collection actual)
Specified by:
assertEquals in interface DOMTestFramework

assertEquals

public void assertEquals(DOMTestCase test,
                         String assertID,
                         String expected,
                         String actual)
Specified by:
assertEquals in interface DOMTestFramework

assertEquals

public void assertEquals(DOMTestCase test,
                         String assertID,
                         boolean expected,
                         boolean actual)
Specified by:
assertEquals in interface DOMTestFramework

assertEquals

public void assertEquals(DOMTestCase test,
                         String assertID,
                         double expected,
                         double actual)
Specified by:
assertEquals in interface DOMTestFramework

assertEquals

public void assertEquals(DOMTestCase test,
                         String assertID,
                         int expected,
                         int actual)
Specified by:
assertEquals in interface DOMTestFramework

assertEqualsIgnoreCase

public void assertEqualsIgnoreCase(DOMTestCase test,
                                   String assertID,
                                   Collection expected,
                                   Collection actual)
Specified by:
assertEqualsIgnoreCase in interface DOMTestFramework

assertEqualsIgnoreCase

public void assertEqualsIgnoreCase(DOMTestCase test,
                                   String assertID,
                                   List expected,
                                   List actual)
Specified by:
assertEqualsIgnoreCase in interface DOMTestFramework

assertEqualsIgnoreCase

public void assertEqualsIgnoreCase(DOMTestCase test,
                                   String assertID,
                                   String expected,
                                   String actual)
Specified by:
assertEqualsIgnoreCase in interface DOMTestFramework

assertFalse

public void assertFalse(DOMTestCase test,
                        String assertID,
                        boolean actual)
Specified by:
assertFalse in interface DOMTestFramework

assertInstanceOf

public void assertInstanceOf(DOMTestCase test,
                             String assertID,
                             Object obj,
                             Class cls)
Specified by:
assertInstanceOf in interface DOMTestFramework

assertNotEquals

public void assertNotEquals(DOMTestCase test,
                            String assertID,
                            String expected,
                            String actual)
Specified by:
assertNotEquals in interface DOMTestFramework

assertNotEquals

public void assertNotEquals(DOMTestCase test,
                            String assertID,
                            boolean expected,
                            boolean actual)
Specified by:
assertNotEquals in interface DOMTestFramework

assertNotEquals

public void assertNotEquals(DOMTestCase test,
                            String assertID,
                            double expected,
                            double actual)
Specified by:
assertNotEquals in interface DOMTestFramework

assertNotEquals

public void assertNotEquals(DOMTestCase test,
                            String assertID,
                            int expected,
                            int actual)
Specified by:
assertNotEquals in interface DOMTestFramework

assertNotEqualsIgnoreCase

public void assertNotEqualsIgnoreCase(DOMTestCase test,
                                      String assertID,
                                      String expected,
                                      String actual)
Specified by:
assertNotEqualsIgnoreCase in interface DOMTestFramework

assertNotNull

public void assertNotNull(DOMTestCase test,
                          String assertID,
                          Object actual)
Specified by:
assertNotNull in interface DOMTestFramework

assertNull

public void assertNull(DOMTestCase test,
                       String assertID,
                       Object actual)
Specified by:
assertNull in interface DOMTestFramework

assertSame

public void assertSame(DOMTestCase test,
                       String assertID,
                       Object expected,
                       Object actual)
Specified by:
assertSame in interface DOMTestFramework

assertSize

public void assertSize(DOMTestCase test,
                       String assertID,
                       int expectedSize,
                       Collection collection)
Specified by:
assertSize in interface DOMTestFramework

assertSize

public void assertSize(DOMTestCase test,
                       String assertID,
                       int expectedSize,
                       NamedNodeMap collection)
Specified by:
assertSize in interface DOMTestFramework

assertSize

public void assertSize(DOMTestCase test,
                       String assertID,
                       int expectedSize,
                       NodeList collection)
Specified by:
assertSize in interface DOMTestFramework

assertTrue

public void assertTrue(DOMTestCase test,
                       String assertID,
                       boolean actual)
Specified by:
assertTrue in interface DOMTestFramework

equals

public boolean equals(Collection expected,
                      Collection actual)
Specified by:
equals in interface DOMTestFramework

equals

public boolean equals(List expected,
                      List actual)
Specified by:
equals in interface DOMTestFramework

equals

public boolean equals(String expected,
                      String actual)
Specified by:
equals in interface DOMTestFramework

equals

public boolean equals(boolean expected,
                      boolean actual)
Specified by:
equals in interface DOMTestFramework

equals

public boolean equals(double expected,
                      double actual)
Specified by:
equals in interface DOMTestFramework

equals

public boolean equals(int expected,
                      int actual)
Specified by:
equals in interface DOMTestFramework

equalsIgnoreCase

public boolean equalsIgnoreCase(Collection expected,
                                Collection actual)
Specified by:
equalsIgnoreCase in interface DOMTestFramework

equalsIgnoreCase

public boolean equalsIgnoreCase(List expected,
                                List actual)
Specified by:
equalsIgnoreCase in interface DOMTestFramework

equalsIgnoreCase

public boolean equalsIgnoreCase(String expected,
                                String actual)
Specified by:
equalsIgnoreCase in interface DOMTestFramework

fail

public void fail(DOMTestCase test,
                 String assertID)
Specified by:
fail in interface DOMTestFramework

hasFeature

public boolean hasFeature(DocumentBuilder docBuilder,
                          String feature,
                          String version)
Specified by:
hasFeature in interface DOMTestFramework

runTest

protected void runTest()
            throws Throwable

same

public boolean same(Object expected,
                    Object actual)
Specified by:
same in interface DOMTestFramework

size

public int size(Collection collection)
Specified by:
size in interface DOMTestFramework

size

public int size(NamedNodeMap collection)
Specified by:
size in interface DOMTestFramework

size

public int size(NodeList collection)
Specified by:
size in interface DOMTestFramework

wait

public void wait(int millisecond)
Specified by:
wait in interface DOMTestFramework