[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch, lbcore148, updated. v0.9.20-4-gfeec52c

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Mon Apr 5 21:08:30 CEST 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Logback: the generic, reliable, fast and flexible logging framework.".

The branch, lbcore148 has been updated
       via  feec52cdd1dfd7215ced4a857fd4538fa3871b8f (commit)
      from  7c545298b251c2e1574029b945849816a8986332 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=feec52cdd1dfd7215ced4a857fd4538fa3871b8f
http://github.com/ceki/logback/commit/feec52cdd1dfd7215ced4a857fd4538fa3871b8f

commit feec52cdd1dfd7215ced4a857fd4538fa3871b8f
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Mon Apr 5 21:05:52 2010 +0200

    It looks like Windows XP may also throw an IOException instead of
    UknownHostException according to Tomasz Nurkiewicz.

diff --git a/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java b/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java
index 1f31383..e7e070a 100644
--- a/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java
+++ b/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java
@@ -59,9 +59,9 @@ public class IncludeActionTest {
 
   static final String TOP_BY_FILE = INCLUSION_DIR_PREFIX + "topByFile.xml";
 
-  static final String INTERMEDIARY_FILE = INCLUSION_DIR_PREFIX + "intermediaryByFile.xml";
+  static final String INTERMEDIARY_FILE = INCLUSION_DIR_PREFIX
+      + "intermediaryByFile.xml";
 
-  
   static final String SUB_FILE = INCLUSION_DIR_PREFIX + "subByFile.xml";
 
   static final String MULTI_INCLUDE_BY_FILE = INCLUSION_DIR_PREFIX
@@ -89,7 +89,7 @@ public class IncludeActionTest {
     rulesMap.put(new Pattern("x"), new NOPAction());
     rulesMap.put(new Pattern("x/include"), new IncludeAction());
     rulesMap.put(new Pattern("x/stack"), new StackAction());
-    
+
     tc = new TrivialConfigurator(rulesMap);
     tc.setContext(context);
   }
@@ -108,21 +108,21 @@ public class IncludeActionTest {
   public void basicFile() throws JoranException {
     System.setProperty(INCLUDE_KEY, INCLUDED_FILE);
     tc.doConfigure(TOP_BY_FILE);
-    verifyConfig(new String[] {"IA", "IB"});
+    verifyConfig(new String[] { "IA", "IB" });
   }
 
   @Test
   public void basicResource() throws JoranException {
     System.setProperty(INCLUDE_KEY, INCLUDED_AS_RESOURCE);
     tc.doConfigure(INCLUDE_BY_RESOURCE);
-    verifyConfig(new String[] {"AR_A", "AR_B"});
+    verifyConfig(new String[] { "AR_A", "AR_B" });
   }
 
   @Test
   public void basicURL() throws JoranException {
     System.setProperty(INCLUDE_KEY, URL_TO_INCLUDE);
     tc.doConfigure(TOP_BY_URL);
-    verifyConfig(new String[] {"IA", "IB"});
+    verifyConfig(new String[] { "IA", "IB" });
   }
 
   @Test
@@ -179,11 +179,12 @@ public class IncludeActionTest {
     tc.doConfigure(TOP_BY_URL);
     assertEquals(Status.ERROR, context.getStatusManager().getLevel());
     StatusChecker sc = new StatusChecker(context.getStatusManager());
+
     // OS X throws IOException instead of UnknownHostException
     // http://jira.qos.ch/browse/LBCORE-129
-    if (!Env.isMac()) {
-      assertTrue(sc.containsException(UnknownHostException.class));
-    }
+    // This behavior has been observed on Windows XP as well
+    assertTrue(sc.containsException(UnknownHostException.class)
+        || sc.containsException(IOException.class));
   }
 
   @Test
@@ -196,20 +197,20 @@ public class IncludeActionTest {
     witness.push("b");
     witness.push("c");
     assertEquals(witness, StackAction.stack);
-    }
+  }
 
   @Test
   public void multiInclude() throws JoranException {
     System.setProperty(INCLUDE_KEY, INCLUDED_FILE);
     System.setProperty(SECOND_FILE_KEY, SECOND_FILE);
     tc.doConfigure(MULTI_INCLUDE_BY_FILE);
-    verifyConfig(new String[] {"IA", "IB", "SECOND"});
+    verifyConfig(new String[] { "IA", "IB", "SECOND" });
   }
-  
+
   void verifyConfig(String[] expected) {
     Stack<String> witness = new Stack<String>();
     witness.addAll(Arrays.asList(expected));
     assertEquals(witness, StackAction.stack);
   }
-  
+
 }

-----------------------------------------------------------------------

Summary of changes:
 .../core/joran/action/IncludeActionTest.java       |   27 ++++++++++---------
 1 files changed, 14 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
Logback: the generic, reliable, fast and flexible logging framework.


More information about the logback-dev mailing list