test_class.file: util/src/test/java/org/microbule/util/jaxrs/WebTargetUtilsTest.java
test_class.identifier: WebTargetUtilsTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testParseSuccessfulResponse() {
          Gson gson = new Gson();
  
          final Response response = Response.ok(gson.toJson(new Person("Slappy", "White"))).type(MediaType.APPLICATION_JSON_TYPE).build();
          final Optional<Person> personOptional = WebTargetUtils.parseJsonResponse(response, Person.class);
          assertTrue(personOptional.isPresent());
          Person person = personOptional.get();
          assertEquals("Slappy", person.getFirstName());
          assertEquals("White", person.getLastName());
      }
test_case.class_method_signature: WebTargetUtilsTest.testParseSuccessfulResponse()
test_case.full_signature: @Test public void testParseSuccessfulResponse()
test_case.identifier: testParseSuccessfulResponse
test_case.invocations: build type ok toJson parseJsonResponse assertTrue isPresent get assertEquals getFirstName assertEquals getLastName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseSuccessfulResponse()
focal_class.declarator: GSON = new Gson()
focal_class.modifier: private static final
focal_class.original_string: private static final Gson GSON = new Gson();
focal_class.type: Gson
focal_class.var_name: GSON
focal_class.file: util/src/main/java/org/microbule/util/jaxrs/WebTargetUtils.java
focal_class.identifier: WebTargetUtils
focal_class.class_method_signature: WebTargetUtils.extend(WebTarget baseTarget, String... paths)
focal_class.full_signature: public static WebTarget extend(WebTarget baseTarget, String... paths)
focal_class.identifier: extend
focal_class.modifiers: public static
focal_class.parameters: (WebTarget baseTarget, String... paths)
focal_class.return: WebTarget
focal_class.signature: WebTarget extend(WebTarget baseTarget, String... paths)
focal_class.class_method_signature: WebTargetUtils.parseJsonResponse(Response response, Class<T> type)
focal_class.full_signature: public static Optional<T> parseJsonResponse(Response response, Class<T> type)
focal_class.identifier: parseJsonResponse
focal_class.modifiers: public static
focal_class.parameters: (Response response, Class<T> type)
focal_class.return: Optional<T>
focal_class.signature: Optional<T> parseJsonResponse(Response response, Class<T> type)
focal_class.class_method_signature: WebTargetUtils.parseJsonResponse(Response response, TypeToken<T> token)
focal_class.full_signature: public static Optional<T> parseJsonResponse(Response response, TypeToken<T> token)
focal_class.identifier: parseJsonResponse
focal_class.modifiers: public static
focal_class.parameters: (Response response, TypeToken<T> token)
focal_class.return: Optional<T>
focal_class.signature: Optional<T> parseJsonResponse(Response response, TypeToken<T> token)
focal_class.class_method_signature: WebTargetUtils.WebTargetUtils()
focal_class.full_signature: private  WebTargetUtils()
focal_class.identifier: WebTargetUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  WebTargetUtils()
focal_method.body: public static <T> Optional<T> parseJsonResponse(Response response, Class<T> type) {
          return parseJsonResponse(response, TypeToken.get(type));
      }
focal_method.class_method_signature: WebTargetUtils.parseJsonResponse(Response response, Class<T> type)
focal_method.full_signature: public static Optional<T> parseJsonResponse(Response response, Class<T> type)
focal_method.identifier: parseJsonResponse
focal_method.invocations: parseJsonResponse get
focal_method.modifiers: public static
focal_method.parameters: (Response response, Class<T> type)
focal_method.return: Optional<T>
focal_method.signature: Optional<T> parseJsonResponse(Response response, Class<T> type)