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
This commit is contained in:
Benedikt Ritter 2013-05-07 06:50:23 +00:00
parent e3a09fc8c1
commit 928ee8fce6
1 changed files with 1 additions and 1 deletions

View File

@ -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);