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:
parent
e3a09fc8c1
commit
928ee8fce6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue