test_class.declarator: service
test_class.modifier: private
test_class.original_string: private DefaultErrorMapperService service;
test_class.type: DefaultErrorMapperService
test_class.var_name: service
test_class.file: errormap/core/src/test/java/org/microbule/errormap/core/DefaultErrorMapperServiceTest.java
test_class.identifier: DefaultErrorMapperServiceTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testCreateResponse() {
          final Response response = service.createResponse("text", new IllegalArgumentException("Didn't find it!"));
          assertEquals(400, response.getStatus());
          assertEquals("Didn't find it!", response.readEntity(String.class));
      }
test_case.class_method_signature: DefaultErrorMapperServiceTest.testCreateResponse()
test_case.full_signature: @Test public void testCreateResponse()
test_case.identifier: testCreateResponse
test_case.invocations: createResponse assertEquals getStatus assertEquals readEntity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateResponse()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DefaultErrorMapperService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(DefaultErrorMapperService.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: errorMappers
focal_class.modifier: private final
focal_class.original_string: private final Map<Class<?>, ErrorMapper> errorMappers;
focal_class.type: Map<Class<?>, ErrorMapper>
focal_class.var_name: errorMappers
focal_class.declarator: responseStrategies
focal_class.modifier: private final
focal_class.original_string: private final Map<String, ErrorResponseStrategy> responseStrategies;
focal_class.type: Map<String, ErrorResponseStrategy>
focal_class.var_name: responseStrategies
focal_class.file: errormap/core/src/main/java/org/microbule/errormap/core/DefaultErrorMapperService.java
focal_class.identifier: DefaultErrorMapperService
focal_class.interfaces: implements ErrorMapperService
focal_class.class_method_signature: DefaultErrorMapperService.DefaultErrorMapperService(MicrobuleContainer container)
focal_class.full_signature: @Inject public  DefaultErrorMapperService(MicrobuleContainer container)
focal_class.identifier: DefaultErrorMapperService
focal_class.modifiers: @Inject public
focal_class.parameters: (MicrobuleContainer container)
focal_class.signature:  DefaultErrorMapperService(MicrobuleContainer container)
focal_class.class_method_signature: DefaultErrorMapperService.createException(String strategyName, Response response)
focal_class.full_signature: @Override public Exception createException(String strategyName, Response response)
focal_class.identifier: createException
focal_class.modifiers: @Override public
focal_class.parameters: (String strategyName, Response response)
focal_class.return: Exception
focal_class.signature: Exception createException(String strategyName, Response response)
focal_class.class_method_signature: DefaultErrorMapperService.createResponse(String strategyName, Exception e)
focal_class.full_signature: @Override public Response createResponse(String strategyName, Exception e)
focal_class.identifier: createResponse
focal_class.modifiers: @Override public
focal_class.parameters: (String strategyName, Exception e)
focal_class.return: Response
focal_class.signature: Response createResponse(String strategyName, Exception e)
focal_class.class_method_signature: DefaultErrorMapperService.getExceptionHandler(Exception exception)
focal_class.full_signature: private ErrorMapper getExceptionHandler(Exception exception)
focal_class.identifier: getExceptionHandler
focal_class.modifiers: private
focal_class.parameters: (Exception exception)
focal_class.return: ErrorMapper
focal_class.signature: ErrorMapper getExceptionHandler(Exception exception)
focal_class.class_method_signature: DefaultErrorMapperService.findExceptionHandler(Class<?> targetType)
focal_class.full_signature: private ErrorMapper findExceptionHandler(Class<?> targetType)
focal_class.identifier: findExceptionHandler
focal_class.modifiers: private
focal_class.parameters: (Class<?> targetType)
focal_class.return: ErrorMapper
focal_class.signature: ErrorMapper findExceptionHandler(Class<?> targetType)
focal_class.class_method_signature: DefaultErrorMapperService.getStrategy(String strategyName)
focal_class.full_signature: private ErrorResponseStrategy getStrategy(String strategyName)
focal_class.identifier: getStrategy
focal_class.modifiers: private
focal_class.parameters: (String strategyName)
focal_class.return: ErrorResponseStrategy
focal_class.signature: ErrorResponseStrategy getStrategy(String strategyName)
focal_method.body: @Override
      public Response createResponse(String strategyName, Exception e) {
          ErrorMapper handler = getExceptionHandler(e);
          return getStrategy(strategyName).createResponse(handler.getStatus(e), handler.getErrorMessages(e));
      }
focal_method.class_method_signature: DefaultErrorMapperService.createResponse(String strategyName, Exception e)
focal_method.full_signature: @Override public Response createResponse(String strategyName, Exception e)
focal_method.identifier: createResponse
focal_method.invocations: getExceptionHandler createResponse getStrategy getStatus getErrorMessages
focal_method.modifiers: @Override public
focal_method.parameters: (String strategyName, Exception e)
focal_method.return: Response
focal_method.signature: Response createResponse(String strategyName, Exception e)