@Test public void getTags_forDeviceToken() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withResponse(jsonResource("data/tag-list"), responseHeaders, HttpStatus.OK, "OK")); List<String> tags = urbanAirship.tagOperations().getTags(DEVICE_TOKEN); assertEquals(3, tags.size()); assertEquals("tag1", tags.get(0)); assertEquals("some_tag", tags.get(1)); assertEquals("portland_or", tags.get(2)); mockServer.verify(); }
public List<String> getTags() { return restOperations.getForObject(URBANAIRSHIP_API_URL + "tags", TagList.class).getTags(); }
TagTemplate implements TagOperations { public List<String> getTags() { return restOperations.getForObject(URBANAIRSHIP_API_URL + "tags", TagList.class).getTags(); } }
TagTemplate implements TagOperations { public List<String> getTags() { return restOperations.getForObject(URBANAIRSHIP_API_URL + "tags", TagList.class).getTags(); } TagTemplate(RestOperations restOperations); }
TagTemplate implements TagOperations { public List<String> getTags() { return restOperations.getForObject(URBANAIRSHIP_API_URL + "tags", TagList.class).getTags(); } 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 List<String> getTags() { return restOperations.getForObject(URBANAIRSHIP_API_URL + "tags", TagList.class).getTags(); } 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);  }