No need to define an anonymous subclass here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479663 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
442eb55948
commit
e3a09fc8c1
|
@ -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