@Test public void createTag_forDeviceToken() { mockServer.expect(requestTo("https: .andExpect(method(PUT)) .andRespond(withResponse("", responseHeaders, HttpStatus.CREATED, "Created")); urbanAirship.tagOperations().createTag(DEVICE_TOKEN, "newtag"); mockServer.verify(); }
public void createTag(String tagName) { restOperations.put(URBANAIRSHIP_API_URL + "tags/" + tagName, ""); }
TagTemplate implements TagOperations { public void createTag(String tagName) { restOperations.put(URBANAIRSHIP_API_URL + "tags/" + tagName, ""); } }
TagTemplate implements TagOperations { public void createTag(String tagName) { restOperations.put(URBANAIRSHIP_API_URL + "tags/" + tagName, ""); } TagTemplate(RestOperations restOperations); }
TagTemplate implements TagOperations { public void createTag(String tagName) { restOperations.put(URBANAIRSHIP_API_URL + "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 createTag(String tagName) { restOperations.put(URBANAIRSHIP_API_URL + "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);  }