Repository: logging-log4j2
Updated Branches:
  refs/heads/master 906abebb3 -> 1815dab40


Add TODO

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

Branch: refs/heads/master
Commit: 1815dab40ddd547380b201f4acd11b2f7d138661
Parents: 906abeb
Author: Gary Gregory <ggreg...@apache.org>
Authored: Wed Sep 21 20:42:40 2016 -0700
Committer: Gary Gregory <ggreg...@apache.org>
Committed: Wed Sep 21 20:42:40 2016 -0700

----------------------------------------------------------------------
 .../log4j/config/Log4j1ConfigurationFactoryTest.java | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1815dab4/log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
 
b/log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
index 81be695..d5ee84f 100644
--- 
a/log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
+++ 
b/log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
@@ -42,7 +42,7 @@ import org.apache.logging.log4j.core.config.Configuration;
 import org.apache.logging.log4j.core.config.LoggerConfig;
 import org.apache.logging.log4j.core.layout.HtmlLayout;
 import org.apache.logging.log4j.core.layout.PatternLayout;
-import org.apache.logging.log4j.status.StatusLogger;
+import org.junit.Ignore;
 import org.junit.Test;
 
 public class Log4j1ConfigurationFactoryTest {
@@ -136,8 +136,17 @@ public class Log4j1ConfigurationFactoryTest {
 
        @Test
        public void testRollingFileAppender() throws Exception {
-               StatusLogger.getLogger().setLevel(Level.TRACE);
-               final Configuration configuration = 
configure("config-1.2/log4j-RollingFileAppender.properties");
+               
testRollingFileAppender("config-1.2/log4j-RollingFileAppender.properties");
+       }
+
+       @Test
+       @Ignore("TODO")
+       public void testRollingFileAppenderWithProperties() throws Exception {
+               
testRollingFileAppender("config-1.2/log4j-RollingFileAppender-with-props.properties");
+       }
+
+       private void testRollingFileAppender(final String configResource) 
throws URISyntaxException {
+               final Configuration configuration = configure(configResource);
                final Appender appender = configuration.getAppender("RFA");
                assertNotNull(appender);
                assertEquals("RFA", appender.getName());

Reply via email to