From 928ee8fce6e784fd34966396a4f1c52b633a1c96 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Tue, 7 May 2013 06:50:23 +0000 Subject: [PATCH] Revert r1479663 because of veto raised on the ML. This test should show that users can provide their own implementations of ExceptionContext. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479777 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/lang3/exception/ContextedRuntimeExceptionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java b/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java index a55f06aae..7eca04205 100644 --- a/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java +++ b/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java @@ -79,7 +79,7 @@ public class ContextedRuntimeExceptionTest extends AbstractExceptionContextTest< @Test public void testContextedExceptionStringThrowableContext() { - exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE), new DefaultExceptionContext()); + exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE), new DefaultExceptionContext() {}); final String message = exceptionContext.getMessage(); final String trace = ExceptionUtils.getStackTrace(exceptionContext); assertTrue(trace.indexOf("ContextedException")>=0);