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:
Benedikt Ritter 2013-05-06 18:05:37 +00:00
parent 442eb55948
commit e3a09fc8c1
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);