Repository: tomee Updated Branches: refs/heads/tomee-1.7.x a783e6dea -> c76ce555b
Make test platform independent Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/c76ce555 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/c76ce555 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/c76ce555 Branch: refs/heads/tomee-1.7.x Commit: c76ce555b1117fe34890e5d9df1de7235c8562fa Parents: a783e6d Author: AndyGee <andy...@gmx.de> Authored: Tue Nov 3 02:56:24 2015 +0100 Committer: AndyGee <andy...@gmx.de> Committed: Tue Nov 3 02:56:24 2015 +0100 ---------------------------------------------------------------------- .../apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/c76ce555/tomee/tomee-juli/src/test/java/org/apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java ---------------------------------------------------------------------- diff --git a/tomee/tomee-juli/src/test/java/org/apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java b/tomee/tomee-juli/src/test/java/org/apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java index 3bc872d..b9ae817 100644 --- a/tomee/tomee-juli/src/test/java/org/apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java +++ b/tomee/tomee-juli/src/test/java/org/apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java @@ -98,7 +98,7 @@ public class LocalFileHandlerTest { final InputStream is = new FileInputStream(new File(out, "test.day1.1.log")); final List<String> lines = IOUtils.readLines(is); - //TODO - Why is this 96 on my machine? assertEquals(19, lines.size()); + assertEquals(19, lines.size()); assertEquals(string10chars, lines.iterator().next()); is.close(); @@ -121,7 +121,7 @@ public class LocalFileHandlerTest { public static class MessageOnlyFormatter extends Formatter { @Override public String format(final LogRecord record) { - return record.getMessage() + String.format("%n"); + return record.getMessage() + "\r"; } } }