Searched refs:stringWriter (Results 1 – 4 of 4) sorted by relevance
166 StringWriter stringWriter = new StringWriter(20); in test_appendChar() local167 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() local179 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() local190 stringWriter.append(testString, 1, 3); in test_appendCharSequenceIntInt()[all …]
35 StringWriter stringWriter = new StringWriter(); in testWhitespaceInAttributeValue() local37 serializer.setOutput(stringWriter); in testWhitespaceInAttributeValue()47 stringWriter.toString()); in testWhitespaceInAttributeValue()51 StringWriter stringWriter = new StringWriter(); in testWriteDocument() local53 serializer.setOutput(stringWriter); in testWriteDocument()63 assertXmlEquals("<foo quux=\"abc\"><bar /><baz /></foo>", stringWriter.toString()); in testWriteDocument()68 StringWriter stringWriter = new StringWriter(); in testWriteSpecialCharactersInText() local70 serializer.setOutput(stringWriter); in testWriteSpecialCharactersInText()76 assertXmlEquals("<foo>5'8\", 5 < 6 & 7 > 3!</foo>", stringWriter.toString()); in testWriteSpecialCharactersInText()101 StringWriter stringWriter = new StringWriter(); in testSpeakNoEvilMonkeys() local[all …]
62 StringWriter stringWriter = new StringWriter(); in toXml() local63 transformer.transform(new DOMSource(document), new StreamResult(stringWriter)); in toXml()64 return stringWriter.toString(); in toXml()
META-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...