LOG4J2-435 bugfix in test Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/bb4b6254 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/bb4b6254 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/bb4b6254
Branch: refs/heads/LOG4J-1181 Commit: bb4b625479e99e7620b901d20d826e7fa703fdf7 Parents: 9df265a Author: rpopma <[email protected]> Authored: Sun Nov 29 15:21:22 2015 +0900 Committer: rpopma <[email protected]> Committed: Sun Nov 29 15:21:22 2015 +0900 ---------------------------------------------------------------------- .../appender/rolling/action/SortingVisitorTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/bb4b6254/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/SortingVisitorTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/SortingVisitorTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/SortingVisitorTest.java index 2240dfa..f5eac73 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/SortingVisitorTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/SortingVisitorTest.java @@ -73,9 +73,9 @@ public class SortingVisitorTest { List<PathWithAttributes> found = visitor.getSortedPaths(); assertNotNull(found); assertEquals("file count", 3, found.size()); - assertEquals("1st: most recent; sorted=" + found, ccc, found.get(0)); - assertEquals("2nd; sorted=" + found, bbb, found.get(1)); - assertEquals("3rd: oldest; sorted=" + found, aaa, found.get(2)); + assertEquals("1st: most recent; sorted=" + found, ccc, found.get(0).getPath()); + assertEquals("2nd; sorted=" + found, bbb, found.get(1).getPath()); + assertEquals("3rd: oldest; sorted=" + found, aaa, found.get(2).getPath()); } @Test @@ -87,8 +87,8 @@ public class SortingVisitorTest { List<PathWithAttributes> found = visitor.getSortedPaths(); assertNotNull(found); assertEquals("file count", 3, found.size()); - assertEquals("1st: oldest first; sorted=" + found, aaa, found.get(0)); - assertEquals("2nd; sorted=" + found, bbb, found.get(1)); - assertEquals("3rd: most recent sorted; list=" + found, ccc, found.get(2)); + assertEquals("1st: oldest first; sorted=" + found, aaa, found.get(0).getPath()); + assertEquals("2nd; sorted=" + found, bbb, found.get(1).getPath()); + assertEquals("3rd: most recent sorted; list=" + found, ccc, found.get(2).getPath()); } }
