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
This commit is contained in:
@@ -37,7 +37,7 @@ import org.apache.log4j.spi.LoggingEvent;
|
|||||||
* logger configured per the configuration properties.</p>
|
* logger configured per the configuration properties.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @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 {
|
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
||||||
@@ -223,10 +223,11 @@ public class CustomConfigTestCase extends DefaultConfigTestCase {
|
|||||||
*/
|
*/
|
||||||
if (thrown) {
|
if (thrown) {
|
||||||
assertNotNull("LoggingEvent thrown",
|
assertNotNull("LoggingEvent thrown",
|
||||||
event.getThrowableInformation().getThrowable());
|
event.getThrowableInformation().getThrowableStrRep());
|
||||||
assertTrue("LoggingEvent thrown type",
|
assertTrue("LoggingEvent thrown type",
|
||||||
event.getThrowableInformation().getThrowable()
|
event.getThrowableInformation()
|
||||||
instanceof IndexOutOfBoundsException);
|
.getThrowableStrRep()[0]
|
||||||
|
.indexOf("IndexOutOfBoundsException")>0);
|
||||||
} else {
|
} else {
|
||||||
assertNull("LoggingEvent thrown",
|
assertNull("LoggingEvent thrown",
|
||||||
event.getThrowableInformation());
|
event.getThrowableInformation());
|
||||||
|
|||||||
Reference in New Issue
Block a user