You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/08/18 12:08:30 UTC

logging-log4j2 git commit: Test for empty string.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 4520f95b4 -> ae9b812c8


Test for empty string.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/ae9b812c
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ae9b812c
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ae9b812c

Branch: refs/heads/master
Commit: ae9b812c85cf4b270421e57442d17443ba7f428b
Parents: 4520f95
Author: ggregory <gg...@apache.org>
Authored: Tue Aug 18 03:08:28 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Tue Aug 18 03:08:28 2015 -0700

----------------------------------------------------------------------
 .../apache/logging/log4j/core/config/ConfigurationTest.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ae9b812c/log4j-core/src/test/java/org/apache/logging/log4j/core/config/ConfigurationTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/ConfigurationTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/ConfigurationTest.java
index 46d569a..344066c 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/ConfigurationTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/ConfigurationTest.java
@@ -100,6 +100,12 @@ public class ConfigurationTest {
     }
 
     @Test
+    public void testGetLoggerConfigEmpty() throws Exception {
+        final Configuration config = this.ctx.getConfiguration();
+        assertEquals(config.getRootLogger(), config.getLoggerConfig(Strings.EMPTY));
+    }
+    
+    @Test
     public void testGetLoggerConfigNull() throws Exception {
         final Configuration config = this.ctx.getConfiguration();
         assertEquals(config.getRootLogger(), config.getLoggerConfig(null));