From d3ebabcd5d35e28921b74787304ebd5f0258b75c Mon Sep 17 00:00:00 2001 From: Robert Burrell Donkin Date: Wed, 19 May 2004 20:59:56 +0000 Subject: [PATCH] Altered test case so that it will work both with head and 1.2.x of Log4J. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139028 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/logging/log4j/CustomConfigTestCase.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/org/apache/commons/logging/log4j/CustomConfigTestCase.java b/src/test/org/apache/commons/logging/log4j/CustomConfigTestCase.java index d7d90f3..fd79652 100644 --- a/src/test/org/apache/commons/logging/log4j/CustomConfigTestCase.java +++ b/src/test/org/apache/commons/logging/log4j/CustomConfigTestCase.java @@ -37,7 +37,7 @@ import org.apache.log4j.spi.LoggingEvent; * logger configured per the configuration properties.

* * @author Craig R. McClanahan - * @version $Revision: 1.8 $ $Date: 2004/02/28 21:46:46 $ + * @version $Revision: 1.9 $ $Date: 2004/05/19 20:59:56 $ */ public class CustomConfigTestCase extends DefaultConfigTestCase { @@ -223,10 +223,11 @@ public class CustomConfigTestCase extends DefaultConfigTestCase { */ 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());