|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
com.ssx.xml.output.TestsForXmlOutput
com.ssx.xml.output.sinks.Test_TextSink
Test for XML Text output to a stream.
Field Summary |
Fields inherited from class com.ssx.xml.output.TestsForXmlOutput |
END_OF_LINE_MARKER, EXPAND_QNAMES, INDENT_SPACER, USE_FORMATTING, USE_SINGLE_QUOTE |
Constructor Summary | |
Test_TextSink(String name)
|
Method Summary | |
protected String |
getXmlText(XmlOutput output)
Convert the XmlOutput object to a string |
protected XmlOutput |
newXmlOutput(HashMap properties)
Create a new XmlOutput instance |
void |
testAttributes_addCdata()
If the proportion of illegal characters to legal characters is large then a CDATA will be used to wrap the output rather than encoding illegal characters. |
void |
testXmlDeclaration()
The XML declaration is included at the start of every stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Test_TextSink(String name)
name
- The test class nameMethod Detail |
protected String getXmlText(XmlOutput output)
TestsForXmlOutput
getXmlText
in class TestsForXmlOutput
output
- An XmlOutput instance
Return the accumulated string in the output writer. Strip off the
xml declaration so all the tests don't have to include it.
protected XmlOutput newXmlOutput(HashMap properties)
TestsForXmlOutput
newXmlOutput
in class TestsForXmlOutput
properties
- The Sink configuration properties
TestsForXmlOutput.newXmlOutput(HashMap)
public void testXmlDeclaration()
public void testAttributes_addCdata()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |