@Test public void testGetUsers_page() throws UnsupportedEncodingException{ mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("testdata/yammer-users"), APPLICATION_JSON)); List<YammerProfile> users = yammerTemplate.userOperations().getUsers(1); assertYammerProfile(users.get(0)); }
public List<YammerProfile> getUsers(int page){ return getUsers(page, null, false, null); }
UserTemplate extends AbstractYammerOperations implements UserOperations { public List<YammerProfile> getUsers(int page){ return getUsers(page, null, false, null); } }
UserTemplate extends AbstractYammerOperations implements UserOperations { public List<YammerProfile> getUsers(int page){ return getUsers(page, null, false, null); } UserTemplate(RestTemplate restTemplate); }
UserTemplate extends AbstractYammerOperations implements UserOperations { public List<YammerProfile> getUsers(int page){ return getUsers(page, null, false, null); } UserTemplate(RestTemplate restTemplate); List<YammerProfile> getUsers(int page); List<YammerProfile> getUsers(int page, String sortBy, boolean reverse, Character letter); YammerProfile getUser(long id); YammerProfile getUser(String userId); void updateProfile(long userId, UserInfo userInfo); YammerProfile getUserProfile(); YammerProfile getUserByEmail(String email); }
UserTemplate extends AbstractYammerOperations implements UserOperations { public List<YammerProfile> getUsers(int page){ return getUsers(page, null, false, null); } UserTemplate(RestTemplate restTemplate); List<YammerProfile> getUsers(int page); List<YammerProfile> getUsers(int page, String sortBy, boolean reverse, Character letter); YammerProfile getUser(long id); YammerProfile getUser(String userId); void updateProfile(long userId, UserInfo userInfo); YammerProfile getUserProfile(); YammerProfile getUserByEmail(String email);  }