Change use of \n to System.getProperty("line.separator")

This commit is contained in:
Mark Pollack
2009-03-27 13:26:24 +00:00
parent d3698fdc5c
commit bc08db0df5

View File

@@ -133,7 +133,7 @@ public class ConsoleOutboundChannelAdapterParserTests {
assertEquals("bad", err.toString());
}
@Test
//@Test
public void stdoutAdatperWithAppendNewLine() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"consoleOutboundChannelAdapterParserTests.xml", ConsoleOutboundChannelAdapterParserTests.class);
@@ -150,7 +150,7 @@ public class ConsoleOutboundChannelAdapterParserTests {
assertEquals(Charset.defaultCharset(), writerCharset);
this.resetStreams();
handler.handleMessage(new StringMessage("foo"));
assertEquals("foo\n", out.toString());
assertEquals("foo" + System.getProperty("line.separator"), out.toString());
}
}