test_class.file: errormap/core/src/test/java/org/microbule/errormap/core/AbstractErrorResponseStrategyTest.java
test_class.identifier: AbstractErrorResponseStrategyTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testCreateException() {
          assertExceptionType(Response.Status.INTERNAL_SERVER_ERROR, InternalServerErrorException.class);
          assertExceptionType(Response.Status.NOT_FOUND, NotFoundException.class);
          assertExceptionType(Response.Status.FORBIDDEN, ForbiddenException.class);
          assertExceptionType(Response.Status.BAD_REQUEST, BadRequestException.class);
          assertExceptionType(Response.Status.METHOD_NOT_ALLOWED, NotAllowedException.class);
          assertExceptionType(Response.Status.UNAUTHORIZED, NotAuthorizedException.class);
          assertExceptionType(Response.Status.NOT_ACCEPTABLE, NotAcceptableException.class);
          assertExceptionType(Response.Status.UNSUPPORTED_MEDIA_TYPE, NotSupportedException.class);
          assertExceptionType(Response.Status.SERVICE_UNAVAILABLE, ServiceUnavailableException.class);
          assertExceptionType(Response.Status.TEMPORARY_REDIRECT, RedirectionException.class);
          assertExceptionType(Response.Status.LENGTH_REQUIRED, ClientErrorException.class);
          assertExceptionType(Response.Status.BAD_GATEWAY, ServerErrorException.class);
          assertExceptionType(Response.Status.NO_CONTENT, WebApplicationException.class);
      }
test_case.class_method_signature: AbstractErrorResponseStrategyTest.testCreateException()
test_case.full_signature: @Test public void testCreateException()
test_case.identifier: testCreateException
test_case.invocations: assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType assertExceptionType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateException()
focal_class.declarator: NEWLINE = "\n"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String NEWLINE = "\n";
focal_class.type: String
focal_class.var_name: NEWLINE
focal_class.file: errormap/core/src/main/java/org/microbule/errormap/core/AbstractErrorResponseStrategy.java
focal_class.identifier: AbstractErrorResponseStrategy
focal_class.interfaces: implements ErrorResponseStrategy
focal_class.class_method_signature: AbstractErrorResponseStrategy.createException(Response response, String errorMessage)
focal_class.full_signature: protected RuntimeException createException(Response response, String errorMessage)
focal_class.identifier: createException
focal_class.modifiers: protected
focal_class.parameters: (Response response, String errorMessage)
focal_class.return: RuntimeException
focal_class.signature: RuntimeException createException(Response response, String errorMessage)
focal_method.body: protected RuntimeException createException(Response response, String errorMessage) {
          Class<? extends WebApplicationException> exceptionClass = WebApplicationExceptions.getWebApplicationExceptionClass(response);
          try {
              final Constructor<? extends WebApplicationException> ctor = exceptionClass.getConstructor(String.class, Response.class);
              return ctor.newInstance(errorMessage, response);
          } catch (ReflectiveOperationException e) {
              return new WebApplicationException(errorMessage, response);
          }
      }
focal_method.class_method_signature: AbstractErrorResponseStrategy.createException(Response response, String errorMessage)
focal_method.full_signature: protected RuntimeException createException(Response response, String errorMessage)
focal_method.identifier: createException
focal_method.invocations: getWebApplicationExceptionClass getConstructor newInstance
focal_method.modifiers: protected
focal_method.parameters: (Response response, String errorMessage)
focal_method.return: RuntimeException
focal_method.signature: RuntimeException createException(Response response, String errorMessage)