lukaszlenart commented on a change in pull request #500:
URL: https://github.com/apache/struts/pull/500#discussion_r740737390
##########
File path:
plugins/rest/src/test/java/org/apache/struts2/rest/handler/JacksonXmlHandlerTest.java
##########
@@ -60,10 +62,16 @@ public void testObjectToXml() throws Exception {
// when
Writer stream = new StringWriter();
handler.fromObject(ai, obj, null, stream);
+ String actual = stream.toString();
Review comment:
Wouldn't be better to move this line after `stream.flush()` on line 68?
##########
File path:
plugins/rest/src/test/java/org/apache/struts2/rest/handler/JacksonXmlHandlerTest.java
##########
@@ -60,10 +62,16 @@ public void testObjectToXml() throws Exception {
// when
Writer stream = new StringWriter();
handler.fromObject(ai, obj, null, stream);
+ String actual = stream.toString();
Review comment:
That's all, thanks!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]