algairim commented on a change in pull request #1161:
URL: https://github.com/apache/brooklyn-server/pull/1161#discussion_r613898611
##########
File path:
software/winrm/src/test/java/org/apache/brooklyn/util/core/internal/winrm/winrm4j/PrettyXmlWriterTest.java
##########
@@ -134,6 +134,24 @@ public void testIgnoreComment() throws IOException {
assertEquals(recordingWriter.out.toString(), "#<
CLIXML\n<t1>\n\t<t2>\n\t\t<t3/>\n\t</t2>\n</t1>");
}
+ @Test
+ public void testWriteInChunks() throws IOException {
+ String xml = "<t1><t2>A</t2></t1>";
+ for (int breakAt = 0; breakAt < xml.length(); breakAt++) {
+ if (breakAt == 15) continue;
Review comment:
There is one more test-case, forgot to verify it. Code change for this
to follow.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]