You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/08/19 20:28:21 UTC
[13/19] logging-log4j2 git commit: See (LOG4J2-905) Ability to
disable (date) lookup completely,
compatibility issues with other libraries like camel. Cleaner test.
See (LOG4J2-905) Ability to disable (date) lookup completely,
compatibility issues with other libraries like camel. Cleaner 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/2fe34f76
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/2fe34f76
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/2fe34f76
Branch: refs/heads/LOG4J2-1528
Commit: 2fe34f7625e44907125b3329945701d270ccee53
Parents: 1ea225d
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Aug 18 23:50:28 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Aug 18 23:50:28 2016 -0700
----------------------------------------------------------------------
.../logging/log4j/core/layout/PatternLayoutLookupDateTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/2fe34f76/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
index f9ac304..6e99656 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/PatternLayoutLookupDateTest.java
@@ -18,10 +18,11 @@ public class PatternLayoutLookupDateTest {
@Test
public void testDateLookupInMessage() {
- context.getLogger(PatternLayoutLookupDateTest.class.getName()).info("${date:YYYY-MM-dd}");
+ final String template = "${date:YYYY-MM-dd}";
+ context.getLogger(PatternLayoutLookupDateTest.class.getName()).info(template);
final ListAppender listAppender = context.getListAppender("List");
final String string = listAppender.getMessages().get(0);
- Assert.assertFalse(string, string.contains("${date:YYYY-MM-dd}"));
+ Assert.assertFalse(string, string.contains(template));
}
}