Unit Test Results.

Designed for use with JUnit and Ant.

Class nu.xom.tests.DocTypeTest

NameTestsErrorsFailuresTime(s)Time StampHost
DocTypeTest38210.5302013-08-19T12:32:24f18

Tests

NameStatusTypeTime(s)
testToXMLSuccess0.008
testToXMLWithCommentsInInternalDTDSubsetSuccess0.025
testToXMLWithCommentsInInternalDTDSubsetAndVerifyingBuilderErrorSAX2 driver class org.apache.xerces.parsers.SAXParser not found

org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:229)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:220)
at nu.xom.tests.DocTypeTest.testToXMLWithCommentsInInternalDTDSubsetAndVerifyingBuilder(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:227)
0.014
testConstructor1ArgSuccess0.002
testNullRootElementNameSuccess0.000
testRootElementNameBeginsWithDigitSuccess0.000
testRootElementNameBeginsWithColonSuccess0.000
testSetRootElementNameSuccess0.001
testToStringSuccess0.001
testToXMLWithInternalDTDSubsetSuccess0.002
testInternalDTDSubsetSuccess0.006
testToXMLWithProcessingInstructionsInInternalDTDSubsetFailureexpected:<...<!DOCTYPE root [ <[?target data?> <!ELEMENT test (#PCDATA)> <?target?]> ]> <test /> > but was:<...<!DOCTYPE root [ <[!ELEMENT test (#PCDATA)]> ]> <test /> >

junit.framework.ComparisonFailure: expected:<...<!DOCTYPE root [
<[?target data?>
<!ELEMENT test (#PCDATA)>
<?target?]>
]>
<test />
> but was:<...<!DOCTYPE root [
<[!ELEMENT test (#PCDATA)]>
]>
<test />
>
at nu.xom.tests.DocTypeTest.testToXMLWithProcessingInstructionsInInternalDTDSubset(Unknown Source)
0.005
testToXMLWithProcessingInstructionsInInternalDTDSubsetAndNonverifyingBuilderErrorSAX2 driver class org.apache.xerces.parsers.SAXParser not found

org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:229)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:220)
at nu.xom.tests.DocTypeTest.testToXMLWithProcessingInstructionsInInternalDTDSubsetAndNonverifyingBuilder(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:227)
0.002
testCloneSuccess0.000
testEmptyRootElementNameSuccess0.001
testNoChildrenSuccess0.001
testConstructor2ArgSuccess0.000
testConstructor3ArgSuccess0.000
testEmptyStringForPublicIDSuccess0.000
testEmptyStringForSystemIDSuccess0.000
testIllegalPublicIDsSuccess0.045
testLegalPublicIDsSuccess0.005
testSpaceContainingPublicIDsSuccess0.000
testSystemIDWithDollarSignAndCommaSuccess0.000
testSystemIDWithSemicolonSuccess0.000
testIllegalSystemIDsSuccess0.001
testGettersSuccess0.001
testSystemIDRequiredForPublicIDSuccess0.001
testRemoveSuccess0.000
testCarriageReturnInEntityReplacementTextInInternalDTDSubsetSuccess0.002
testCarriageReturnInAttributeDefaultValueInInternalDTDSubsetSuccess0.003
testAmpersandInEntityReplacementTextInInternalDTDSubsetSuccess0.002
testAmpersandInAttributeDefaultValueInInternalDTDSubsetSuccess0.002
testDoubleQuoteInAttributeDefaultValueInInternalDTDSubsetSuccess0.007
testSingleQuoteInAttributeDefaultValueInInternalDTDSubsetSuccess0.001
testLessThanSignInAttributeDefaultValueInInternalDTDSubsetSuccess0.002
testGreaterThanSignInAttributeDefaultValueInInternalDTDSubsetSuccess0.002
testDoubleQuoteInEntityReplacementTextInInternalDTDSubsetSuccess0.002
Properties »