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/07/25 15:57:09 UTC

[40/50] [abbrv] logging-log4j2 git commit: Better test method names (hopefully).

Better test method names (hopefully).

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

Branch: refs/heads/LOG4J-1181
Commit: 6d213533f36e23c852c3f5b1e1428337aacbb625
Parents: db36b47
Author: Gary Gregory <gg...@apache.org>
Authored: Tue Jul 19 20:07:41 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Tue Jul 19 20:07:41 2016 -0700

----------------------------------------------------------------------
 .../apache/logging/log4j/core/config/TestConfigurator.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6d213533/log4j-core/src/test/java/org/apache/logging/log4j/core/config/TestConfigurator.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/TestConfigurator.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/TestConfigurator.java
index 3c5494f..f0a820e 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/TestConfigurator.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/TestConfigurator.java
@@ -93,7 +93,7 @@ public class TestConfigurator {
     }
 
     @Test
-    public void testFromFile() throws Exception {
+    public void testInitialize_Name_PathName() throws Exception {
         ctx = Configurator.initialize("Test1", "target/test-classes/log4j2-config.xml");
         LogManager.getLogger("org.apache.test.TestConfigurator");
         Configuration config = ctx.getConfiguration();
@@ -125,7 +125,7 @@ public class TestConfigurator {
     }
 
     @Test
-    public void testFromStream() throws Exception {
+    public void testInitialize_InputStream_File() throws Exception {
         final File file = new File("target/test-classes/log4j2-config.xml");
         final InputStream is = new FileInputStream(file);
         final ConfigurationSource source = new ConfigurationSource(is, file);
@@ -144,7 +144,7 @@ public class TestConfigurator {
     }
 
     @Test
-    public void testFromStreamNoId() throws Exception {
+    public void testInitialize_NullClassLoader_ConfigurationSourceWithInputStream_NoId() throws Exception {
         final InputStream is = new FileInputStream("target/test-classes/log4j2-config.xml");
         final ConfigurationSource source =
             new ConfigurationSource(is);
@@ -163,7 +163,7 @@ public class TestConfigurator {
     }
 
     @Test
-    public void testFromClassPath() throws Exception {
+    public void testInitialize_Name_LocationName() throws Exception {
         ctx = Configurator.initialize("Test1", "log4j2-config.xml");
         LogManager.getLogger("org.apache.test.TestConfigurator");
         Configuration config = ctx.getConfiguration();