rdonkin 2004/05/19 13:59:56
Modified: logging/src/test/org/apache/commons/logging/log4j
CustomConfigTestCase.java
Log:
Altered test case so that it will work both with head and 1.2.x of Log4J.
Revision Changes Path
1.9 +5 -4
jakarta-commons/logging/src/test/org/apache/commons/logging/log4j/CustomConfigTestCase.java
Index: CustomConfigTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/logging/src/test/org/apache/commons/logging/log4j/CustomConfigTestCase.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- CustomConfigTestCase.java 28 Feb 2004 21:46:46 -0000 1.8
+++ CustomConfigTestCase.java 19 May 2004 20:59:56 -0000 1.9
@@ -223,10 +223,11 @@
*/
if (thrown) {
assertNotNull("LoggingEvent thrown",
- event.getThrowableInformation().getThrowable());
+ event.getThrowableInformation().getThrowableStrRep());
assertTrue("LoggingEvent thrown type",
- event.getThrowableInformation().getThrowable()
- instanceof IndexOutOfBoundsException);
+ event.getThrowableInformation()
+ .getThrowableStrRep()[0]
+ .indexOf("IndexOutOfBoundsException")>0);
} else {
assertNull("LoggingEvent thrown",
event.getThrowableInformation());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]