Home
last modified time | relevance | path

Searched refs:stringWriter (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DStringWriterTest.java166 StringWriter stringWriter = new StringWriter(20); in test_appendChar() local
167 stringWriter.append(testChar); in test_appendChar()
168 assertEquals(String.valueOf(testChar), stringWriter.toString()); in test_appendChar()
169 stringWriter.close(); in test_appendChar()
178 StringWriter stringWriter = new StringWriter(20); in test_appendCharSequence() local
179 stringWriter.append(testString); in test_appendCharSequence()
180 assertEquals(String.valueOf(testString), stringWriter.toString()); in test_appendCharSequence()
181 stringWriter.close(); in test_appendCharSequence()
189 StringWriter stringWriter = new StringWriter(20); in test_appendCharSequenceIntInt() local
190 stringWriter.append(testString, 1, 3); in test_appendCharSequenceIntInt()
[all …]
/libcore/luni/src/test/java/libcore/xml/
DKxmlSerializerTest.java35 StringWriter stringWriter = new StringWriter(); in testWhitespaceInAttributeValue() local
37 serializer.setOutput(stringWriter); in testWhitespaceInAttributeValue()
47 stringWriter.toString()); in testWhitespaceInAttributeValue()
51 StringWriter stringWriter = new StringWriter(); in testWriteDocument() local
53 serializer.setOutput(stringWriter); in testWriteDocument()
63 assertXmlEquals("<foo quux=\"abc\"><bar /><baz /></foo>", stringWriter.toString()); in testWriteDocument()
68 StringWriter stringWriter = new StringWriter(); in testWriteSpecialCharactersInText() local
70 serializer.setOutput(stringWriter); in testWriteSpecialCharactersInText()
76 assertXmlEquals("<foo>5'8\", 5 &lt; 6 &amp; 7 &gt; 3!</foo>", stringWriter.toString()); in testWriteSpecialCharactersInText()
101 StringWriter stringWriter = new StringWriter(); in testSpeakNoEvilMonkeys() local
[all …]
DDomSerializationTest.java62 StringWriter stringWriter = new StringWriter(); in toXml() local
63 transformer.transform(new DOMSource(document), new StreamResult(stringWriter)); in toXml()
64 return stringWriter.toString(); in toXml()
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...