logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1405685 - /logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/CategoryTest.java
Date Mon, 05 Nov 2012 01:03:07 GMT
Author: rgoers
Date: Mon Nov  5 01:03:06 2012
New Revision: 1405685

URL: http://svn.apache.org/viewvc?rev=1405685&view=rev
Log:
Fix test so it runs in JRockit.

Modified:
    logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/CategoryTest.java

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/CategoryTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/CategoryTest.java?rev=1405685&r1=1405684&r2=1405685&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/CategoryTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/CategoryTest.java
Mon Nov  5 01:03:06 2012
@@ -174,7 +174,8 @@ public class CategoryTest {
         assertTrue("Incorrect number of messages. Expected 1 got " + msgs.size(), msgs.size()
== 1);
         String msg = msgs.get(0);
         appender.clear();
-        String expected = "ERROR o.a.l.CategoryTest [main] Test Message" + LINE_SEP;
+        String threadName = Thread.currentThread().getName();
+        String expected = "ERROR o.a.l.CategoryTest [" + threadName + "] Test Message" +
LINE_SEP;
         assertTrue("Incorrect message \"" + msg + "\"" + " expected \"" + expected +"\"",
msg.endsWith(expected));
     }
 



Mime
View raw message