Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
*
* @author Dave Syer
* @author Dan Garrette
* @author Yanming Zhou
*/
public class OrderLineAggregator implements LineAggregator<Order> {

private static final String LINE_SEPARATOR = System.getProperty("line.separator");
private static final String LINE_SEPARATOR = System.lineSeparator();

private Map<String, LineAggregator<Object>> aggregators;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ class MultilineAggregateJobFunctionalTests {
@Test
void testJobLaunch() throws Exception {
this.jobOperatorTestUtils.startJob();
assertEquals(EXPECTED_RESULT,
StringUtils.replace(IOUtils.toString(output.getInputStream(), StandardCharsets.UTF_8),
System.getProperty("line.separator"), ""));
assertEquals(EXPECTED_RESULT, StringUtils
.replace(IOUtils.toString(output.getInputStream(), StandardCharsets.UTF_8), System.lineSeparator(), ""));
}

}
Loading