@Test public void testCreateThenDelete() throws IOException { String createStr = createTask(); ObjectNode actual = MAPPER.readValue(createStr, ObjectNode.class); ObjectNode expected = MAPPER.readValue(ResourceUtil.readResource("/apiResponses/create.json"), ObjectNode.class); String id = actual.get("id").textValue(); expected.put("id", id); assertEquals(expected, actual); client.delete("Task", new Id(id)); }
void delete(String sObjectType, Id id) throws IOException { executeRequestForString(new HttpDelete(getUri("/sobjects/" + sObjectType + "/" + id))); }
HttpApiClient { void delete(String sObjectType, Id id) throws IOException { executeRequestForString(new HttpDelete(getUri("/sobjects/" + sObjectType + "/" + id))); } }
HttpApiClient { void delete(String sObjectType, Id id) throws IOException { executeRequestForString(new HttpDelete(getUri("/sobjects/" + sObjectType + "/" + id))); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client); }
HttpApiClient { void delete(String sObjectType, Id id) throws IOException { executeRequestForString(new HttpDelete(getUri("/sobjects/" + sObjectType + "/" + id))); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);  }
HttpApiClient { void delete(String sObjectType, Id id) throws IOException { executeRequestForString(new HttpDelete(getUri("/sobjects/" + sObjectType + "/" + id))); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);   }