Repository: tomee Updated Branches: refs/heads/master 93d2cc0f7 -> 234d35e95
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/234d35e9 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/234d35e9 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/234d35e9 Branch: refs/heads/master Commit: 234d35e95e1137f0da4e4d123c11c0bcf0d23acc Parents: 93d2cc0 Author: andygumbre...@apache.org <andy...@gmx.de> Authored: Tue Nov 3 02:55:33 2015 +0100 Committer: andygumbre...@apache.org <andy...@gmx.de> Committed: Tue Nov 3 02:55:33 2015 +0100 ---------------------------------------------------------------------- .../apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/234d35e9/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 2af3675..b239052 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 @@ -34,7 +34,6 @@ import java.util.logging.Formatter; import java.util.logging.Level; import java.util.logging.LogRecord; -import static java.lang.System.lineSeparator; import static java.util.Arrays.asList; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -50,7 +49,7 @@ public class LocalFileHandlerTest { return pathname.getName().startsWith("test"); } }))) { - if(!file.delete()){ + if (!file.delete()) { file.deleteOnExit(); } } @@ -124,7 +123,7 @@ public class LocalFileHandlerTest { public static class MessageOnlyFormatter extends Formatter { @Override public String format(final LogRecord record) { - return record.getMessage() + lineSeparator(); + return record.getMessage() + "\r"; } } }