@Test @Ignore("Revisit this") public void removeTag_notAssociatedWithDevice() { mockServer.expect(requestTo("https: .andExpect(method(DELETE)) .andRespond(withResponse("", responseHeaders, HttpStatus.NOT_FOUND, "NOT FOUND")); urbanAirship.tagOperations().removeTag(DEVICE_TOKEN, "newtag"); mockServer.verify(); }
public void removeTag(String deviceToken, String tagName) { restOperations.delete(URBANAIRSHIP_API_URL + "device_tokens/" + deviceToken + "/tags/" + tagName); }
TagTemplate implements TagOperations { public void removeTag(String deviceToken, String tagName) { restOperations.delete(URBANAIRSHIP_API_URL + "device_tokens/" + deviceToken + "/tags/" + tagName); } }
TagTemplate implements TagOperations { public void removeTag(String deviceToken, String tagName) { restOperations.delete(URBANAIRSHIP_API_URL + "device_tokens/" + deviceToken + "/tags/" + tagName); } TagTemplate(RestOperations restOperations); }
TagTemplate implements TagOperations { public void removeTag(String deviceToken, String tagName) { restOperations.delete(URBANAIRSHIP_API_URL + "device_tokens/" + deviceToken + "/tags/" + tagName); } TagTemplate(RestOperations restOperations); List<String> getTags(); List<String> getTags(String deviceToken); void createTag(String tagName); void createTag(String deviceToken, String tagName); void modifyTagTokens(String tagName, List<String> tokensToAdd, List<String> tokensToRemove); void modifyTagPins(String tagName, List<String> pinsToAdd, List<String> pinsToRemove); void modifyTagAppIds(String tagName, List<String> idsToAdd, List<String> idsToRemove); void removeTags(); void removeTag(String deviceToken, String tagName); }
TagTemplate implements TagOperations { public void removeTag(String deviceToken, String tagName) { restOperations.delete(URBANAIRSHIP_API_URL + "device_tokens/" + deviceToken + "/tags/" + tagName); } TagTemplate(RestOperations restOperations); List<String> getTags(); List<String> getTags(String deviceToken); void createTag(String tagName); void createTag(String deviceToken, String tagName); void modifyTagTokens(String tagName, List<String> tokensToAdd, List<String> tokensToRemove); void modifyTagPins(String tagName, List<String> pinsToAdd, List<String> pinsToRemove); void modifyTagAppIds(String tagName, List<String> idsToAdd, List<String> idsToRemove); void removeTags(); void removeTag(String deviceToken, String tagName);  }