test_class.file: errormap/core/src/test/java/org/microbule/errormap/core/text/PlainTextErrorResponseStrategyTest.java
test_class.identifier: PlainTextErrorResponseStrategyTest
test_class.superclass: extends AbstractErrorResponseStrategyTest
test_case.body: @Test
      public void testCreateResponse() {
          final ErrorResponseStrategy strategy = PlainTextErrorResponseStrategy.INSTANCE;
          final Response response = strategy.createResponse(Response.Status.FORBIDDEN, Lists.newArrayList("You are forbidden!", "Not gonna happen!"));
          assertEquals("You are forbidden!\nNot gonna happen!", response.readEntity(String.class));
          assertEquals(Response.Status.FORBIDDEN.getStatusCode(), response.getStatus());
      }
test_case.class_method_signature: PlainTextErrorResponseStrategyTest.testCreateResponse()
test_case.full_signature: @Test public void testCreateResponse()
test_case.identifier: testCreateResponse
test_case.invocations: createResponse newArrayList assertEquals readEntity assertEquals getStatusCode getStatus
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateResponse()
focal_class.declarator: INSTANCE = new PlainTextErrorResponseStrategy()
focal_class.modifier: public static final
focal_class.original_string: public static final ErrorResponseStrategy INSTANCE = new PlainTextErrorResponseStrategy();
focal_class.type: ErrorResponseStrategy
focal_class.var_name: INSTANCE
focal_class.declarator: NAME = "text"
focal_class.modifier: private static final
focal_class.original_string: private static final String NAME = "text";
focal_class.type: String
focal_class.var_name: NAME
focal_class.file: errormap/core/src/main/java/org/microbule/errormap/core/text/PlainTextErrorResponseStrategy.java
focal_class.identifier: PlainTextErrorResponseStrategy
focal_class.class_method_signature: PlainTextErrorResponseStrategy.createException(Response response)
focal_class.full_signature: @Override public RuntimeException createException(Response response)
focal_class.identifier: createException
focal_class.modifiers: @Override public
focal_class.parameters: (Response response)
focal_class.return: RuntimeException
focal_class.signature: RuntimeException createException(Response response)
focal_class.class_method_signature: PlainTextErrorResponseStrategy.createResponse(Response.StatusType status, List<String> errorMessages)
focal_class.full_signature: @Override public Response createResponse(Response.StatusType status, List<String> errorMessages)
focal_class.identifier: createResponse
focal_class.modifiers: @Override public
focal_class.parameters: (Response.StatusType status, List<String> errorMessages)
focal_class.return: Response
focal_class.signature: Response createResponse(Response.StatusType status, List<String> errorMessages)
focal_class.class_method_signature: PlainTextErrorResponseStrategy.name()
focal_class.full_signature: @Override public String name()
focal_class.identifier: name
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String name()
focal_class.superclass: extends AbstractErrorResponseStrategy
focal_method.body: @Override
      public Response createResponse(Response.StatusType status, List<String> errorMessages) {
          return Response.status(status)
                  .type(MediaType.TEXT_PLAIN_TYPE)
                  .entity(StringUtils.join(errorMessages, NEWLINE))
                  .build();
      }
focal_method.class_method_signature: PlainTextErrorResponseStrategy.createResponse(Response.StatusType status, List<String> errorMessages)
focal_method.full_signature: @Override public Response createResponse(Response.StatusType status, List<String> errorMessages)
focal_method.identifier: createResponse
focal_method.invocations: build entity type status join
focal_method.modifiers: @Override public
focal_method.parameters: (Response.StatusType status, List<String> errorMessages)
focal_method.return: Response
focal_method.signature: Response createResponse(Response.StatusType status, List<String> errorMessages)