Comment why a anonymous subclass is used here

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479780 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2013-05-07 06:54:35 +00:00
parent 928ee8fce6
commit 2154d86415
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ public class ContextedRuntimeExceptionTest extends AbstractExceptionContextTest<
@Test
public void testContextedExceptionStringThrowableContext() {
// Use an anonymous subclass to make sure users can provide custom implementations
exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE), new DefaultExceptionContext() {});
final String message = exceptionContext.getMessage();
final String trace = ExceptionUtils.getStackTrace(exceptionContext);