logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1608325 - /logging/log4j/log4j2/branches/messaging-module/log4j-core/src/test/java/org/apache/logging/log4j/core/async/AsyncLoggerContextSelectorTest.java
Date Mon, 07 Jul 2014 01:20:40 GMT
Author: mattsicker
Date: Mon Jul  7 01:20:39 2014
New Revision: 1608325

URL: http://svn.apache.org/r1608325
Log:
Merge test fix from trunk.

Modified:
    logging/log4j/log4j2/branches/messaging-module/log4j-core/src/test/java/org/apache/logging/log4j/core/async/AsyncLoggerContextSelectorTest.java

Modified: logging/log4j/log4j2/branches/messaging-module/log4j-core/src/test/java/org/apache/logging/log4j/core/async/AsyncLoggerContextSelectorTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/branches/messaging-module/log4j-core/src/test/java/org/apache/logging/log4j/core/async/AsyncLoggerContextSelectorTest.java?rev=1608325&r1=1608324&r2=1608325&view=diff
==============================================================================
--- logging/log4j/log4j2/branches/messaging-module/log4j-core/src/test/java/org/apache/logging/log4j/core/async/AsyncLoggerContextSelectorTest.java
(original)
+++ logging/log4j/log4j2/branches/messaging-module/log4j-core/src/test/java/org/apache/logging/log4j/core/async/AsyncLoggerContextSelectorTest.java
Mon Jul  7 01:20:39 2014
@@ -51,11 +51,11 @@ public class AsyncLoggerContextSelectorT
     }
 
     @Test
-    public void testContextNameIsAsyncLoggerContext() {
+    public void testContextNameIsAsyncLoggerContextWithClassHashCode() {
         final AsyncLoggerContextSelector selector = new AsyncLoggerContextSelector();
         final LoggerContext context = selector.getContext(null, null, false);
-
-        assertEquals("AsyncLoggerContext", context.getName());
+        final String expectedContextName = "AsyncLoggerContext@" + AsyncLoggerContext.class.hashCode();
+        assertEquals(expectedContextName, context.getName());
     }
 
 }



Mime
View raw message