Project dom4j 1.5.2 [5/2/05 10:13 PM]
 
Class Summary - org. dom4j. io. XMLWriter
Risk Complexity Usage Methods Coverage Test Points Failures Owners
Methods Outcomes
2821 282 10 93 58.4 % 51.6 % -- 2 Not Owned
Methods
Method Complexity Coverage Outcomes with Test Points Test Status Outcome Status
<init>() 1 100.0 % -- Passed --
<init>(OutputFormat) 1 100.0 % -- Passed --
<init>(OutputStream, OutputFormat) 1 100.0 % -- Passed --
<init>(OutputStream) 1 100.0 % -- Passed --
<init>(Writer, OutputFormat) 1 100.0 % -- Failed --
<init>(Writer) 1 100.0 % -- Failed --
characters(char[], int, int) 12 86.8 % -- Passed --
close() 1 100.0 % -- Passed --
comment(char[], int, int) 5 0.0 % -- -- --
createWriter(OutputStream, String) 1 100.0 % -- Passed --
defaultMaximumAllowedCharacter() 3 57.1 % -- Failed --
endCDATA() 3 0.0 % -- -- --
endDocument() 3 50.0 % -- Passed --
endDTD() 2 0.0 % -- -- --
endElement(String, String, String) 4 81.2 % -- -- --
endEntity(String) 2 0.0 % -- -- --
endPrefixMapping(String) 1 0.0 % -- -- --
escapeAttributeEntities(String) 17 30.4 % -- Failed --
escapeElementEntities(String) 14 92.7 % -- Failed --
flush() 1 100.0 % -- Failed --
getLexicalHandler() 1 0.0 % -- -- --
getMaximumAllowedCharacter() 2 100.0 % -- Failed --
getOutputFormat() 1 100.0 % -- -- --
getProperty(String) 3 0.0 % -- -- --
handleException(IOException) 1 0.0 % -- Passed --
ignorableWhitespace(char[], int, int) 1 0.0 % -- -- --
indent() 4 100.0 % -- Failed --
installLexicalHandler() 5 0.0 % -- -- --
isElementSpacePreserved(Element) 4 90.9 % -- Failed --
isEscapeText() 1 0.0 % -- -- --
isExpandEmptyElements() 1 0.0 % -- -- --
isNamespaceDeclaration(Namespace) 5 72.7 % -- Failed --
notationDecl(String, String, String) 1 0.0 % -- -- --
parse(InputSource) 1 0.0 % -- -- --
println() 1 100.0 % -- Failed --
processingInstruction(String, String) 2 0.0 % -- -- --
resolveEntityRefs() 1 0.0 % -- Failed --
setDocumentLocator(Locator) 1 100.0 % -- -- --
setEscapeText(boolean) 1 100.0 % -- Passed --
setIndentLevel(int) 1 0.0 % -- -- --
setLexicalHandler(LexicalHandler) 2 0.0 % -- -- --
setMaximumAllowedCharacter(int) 1 100.0 % -- Passed --
setOutputStream(OutputStream) 1 100.0 % -- Passed --
setProperty(String, Object) 3 0.0 % -- -- --
setResolveEntityRefs(boolean) 1 0.0 % -- -- --
setWriter(Writer) 1 100.0 % -- Passed --
shouldEncodeChar(char) 3 100.0 % -- Failed --
startCDATA() 3 0.0 % -- -- --
startDocument() 2 80.0 % -- Passed --
startDTD(String, String, String) 3 0.0 % -- -- --
startElement(String, String, String, Attributes) 2 92.9 % -- -- --
startEntity(String) 3 0.0 % -- -- --
startPrefixMapping(String, String) 2 0.0 % -- -- --
unparsedEntityDecl(String, String, String, String) 1 0.0 % -- -- --
write(Attribute) 2 0.0 % -- -- --
write(CDATA) 2 0.0 % -- -- --
write(Comment) 2 0.0 % -- -- --
write(Document) 4 100.0 % -- Failed --
write(DocumentType) 2 0.0 % -- -- --
write(Element) 2 100.0 % -- Passed --
write(Entity) 2 0.0 % -- -- --
write(Namespace) 2 0.0 % -- -- --
write(Node) 2 60.0 % -- Passed --
write(Object) 6 18.8 % -- Passed --
write(ProcessingInstruction) 2 0.0 % -- -- --
write(String) 2 0.0 % -- Passed --
write(Text) 2 0.0 % -- -- --
writeAttribute(Attribute) 1 0.0 % -- Failed --
writeAttribute(Attributes, int) 1 100.0 % -- -- --
writeAttributes(Attributes) 2 100.0 % -- -- --
writeAttributes(Element) 10 47.5 % -- Failed --
writeCDATA(String) 2 100.0 % -- Failed --
writeClose(Element) 1 0.0 % -- -- --
writeClose(String) 1 100.0 % -- -- --
writeComment(String) 2 100.0 % -- Failed --
writeDeclaration() 6 57.9 % -- Failed --
writeDocType(DocumentType) 2 80.0 % -- Failed --
writeDocType(String, String, String) 6 0.0 % -- -- --
writeElement(Element) 10 100.0 % -- Failed --
writeElementContent(Element) 23 92.1 % -- Failed --
writeEmptyElementClose(String) 2 100.0 % -- Failed --
writeEntity(Entity) 2 0.0 % -- Failed --
writeEntityRef(String) 1 0.0 % -- Failed --
writeEscapeAttributeEntities(String) 2 80.0 % -- Failed --
writeNamespace(Namespace) 2 75.0 % -- Failed --
writeNamespace(String, String) 3 90.9 % -- Failed --
writeNamespaces() 3 20.0 % -- -- --
writeNode(Node) 11 60.9 % -- Failed --
writeNodeText(Node) 4 72.7 % -- Failed --
writeOpen(Element) 1 0.0 % -- -- --
writePrintln() 2 100.0 % -- Failed --
writeProcessingInstruction(ProcessingInstruction) 1 0.0 % -- Failed --
writeString(String) 8 73.1 % -- Failed --
Test Classes
Test Class Status
org. dom4j. XMLResultTest Passed
org. dom4j. XMLWriterTest Failed
org. dom4j. BackedListTest Passed
org. dom4j. LineFeedTest Passed
org. dom4j. RoundTripTest Failed
org. dom4j. XMLSpaceAttributeTest Passed
org. dom4j. dom. DOMTest Passed
org. dom4j. io. WriteUnmergedTextTest Passed
Failure Details
Test Class Failures
Test Method Status Failure Message
org. dom4j. RoundTripTest. testFullRoundTrip() Failed java.lang.NullPointerException:
org. dom4j. RoundTripTest. testTextRoundTrip() Failed java.lang.NullPointerException:
Rule Violations
There are no rule violations for this class
Agitation Notes
There are no agitation notes for this class