test_class.file: errormap/mapper/src/test/java/org/microbule/errormap/mapper/WebApplicationExceptionErrorMapperTest.java
test_class.identifier: WebApplicationExceptionErrorMapperTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testGetErrorMessages() {
          final WebApplicationExceptionErrorMapper errorMapper = new WebApplicationExceptionErrorMapper();
          assertEquals(Collections.singletonList("Not found!"), errorMapper.doGetErrorMessages(new NotFoundException("Not found!")));
          assertEquals(Collections.singletonList("Not Found"), errorMapper.doGetErrorMessages(new NotFoundException("")));
      }
test_case.class_method_signature: WebApplicationExceptionErrorMapperTest.testGetErrorMessages()
test_case.full_signature: @Test public void testGetErrorMessages()
test_case.identifier: testGetErrorMessages
test_case.invocations: assertEquals singletonList doGetErrorMessages assertEquals singletonList doGetErrorMessages
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetErrorMessages()
focal_class.file: errormap/mapper/src/main/java/org/microbule/errormap/mapper/WebApplicationExceptionErrorMapper.java
focal_class.identifier: WebApplicationExceptionErrorMapper
focal_class.class_method_signature: WebApplicationExceptionErrorMapper.doGetErrorMessages(WebApplicationException exception)
focal_class.full_signature: @Override protected List<String> doGetErrorMessages(WebApplicationException exception)
focal_class.identifier: doGetErrorMessages
focal_class.modifiers: @Override protected
focal_class.parameters: (WebApplicationException exception)
focal_class.return: List<String>
focal_class.signature: List<String> doGetErrorMessages(WebApplicationException exception)
focal_class.class_method_signature: WebApplicationExceptionErrorMapper.doGetStatus(WebApplicationException exception)
focal_class.full_signature: @Override protected Response.StatusType doGetStatus(WebApplicationException exception)
focal_class.identifier: doGetStatus
focal_class.modifiers: @Override protected
focal_class.parameters: (WebApplicationException exception)
focal_class.return: Response.StatusType
focal_class.signature: Response.StatusType doGetStatus(WebApplicationException exception)
focal_class.superclass: extends TypedErrorMapper<WebApplicationException>
focal_method.body: @Override
      protected List<String> doGetErrorMessages(WebApplicationException exception) {
          Response response = exception.getResponse();
          if (StringUtils.isBlank(exception.getMessage())) {
              return Collections.singletonList(Responses.getErrorMessage(response));
          } else {
              return Collections.singletonList(exception.getMessage());
          }
      }
focal_method.class_method_signature: WebApplicationExceptionErrorMapper.doGetErrorMessages(WebApplicationException exception)
focal_method.full_signature: @Override protected List<String> doGetErrorMessages(WebApplicationException exception)
focal_method.identifier: doGetErrorMessages
focal_method.invocations: getResponse isBlank getMessage singletonList getErrorMessage singletonList getMessage
focal_method.modifiers: @Override protected
focal_method.parameters: (WebApplicationException exception)
focal_method.return: List<String>
focal_method.signature: List<String> doGetErrorMessages(WebApplicationException exception)