@Test public void testGetUserInfoById(){ Long id = 4022983L; mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("testdata/yammer-user"), APPLICATION_JSON)); YammerProfile yProfile = yammerTemplate.userOperations().getUser(id); assertThat(yProfile.getId(), equalTo(id)); assertYammerProfile(yProfile); }
public YammerProfile getUser(long id){ String userId = String.valueOf(id); return getUser(userId); }
UserTemplate extends AbstractYammerOperations implements UserOperations { public YammerProfile getUser(long id){ String userId = String.valueOf(id); return getUser(userId); } }
UserTemplate extends AbstractYammerOperations implements UserOperations { public YammerProfile getUser(long id){ String userId = String.valueOf(id); return getUser(userId); } UserTemplate(RestTemplate restTemplate); }
UserTemplate extends AbstractYammerOperations implements UserOperations { public YammerProfile getUser(long id){ String userId = String.valueOf(id); return getUser(userId); } 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 YammerProfile getUser(long id){ String userId = String.valueOf(id); return getUser(userId); } 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);  }