@Test public void testGetGroup(){ Long id = 4022983L; mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("testdata/yammer-group"), APPLICATION_JSON)); Group group = yammerTemplate.groupOperations().getGroup(id); assertThat(group.getFullName(), equalTo("yammer-test-group")); assertThat(group.getLastMessageAt(), notNullValue()); }
public Group getGroup(long groupId) { return restTemplate.getForObject(buildUri("groups/"+String.valueOf(groupId)+".json"), Group.class); }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public Group getGroup(long groupId) { return restTemplate.getForObject(buildUri("groups/"+String.valueOf(groupId)+".json"), Group.class); } }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public Group getGroup(long groupId) { return restTemplate.getForObject(buildUri("groups/"+String.valueOf(groupId)+".json"), Group.class); } GroupTemplate(RestTemplate restTemplate); }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public Group getGroup(long groupId) { return restTemplate.getForObject(buildUri("groups/"+String.valueOf(groupId)+".json"), Group.class); } GroupTemplate(RestTemplate restTemplate); List<Group> getGroups(int page, Character letter, String sortBy, boolean reverse); Group getGroup(long groupId); void createGroup(String name, boolean isPrivate); void updateGroup(long groupId, String name, boolean isPrivate); void joinGroup(long groupId); void leaveGroup(long groupId); }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public Group getGroup(long groupId) { return restTemplate.getForObject(buildUri("groups/"+String.valueOf(groupId)+".json"), Group.class); } GroupTemplate(RestTemplate restTemplate); List<Group> getGroups(int page, Character letter, String sortBy, boolean reverse); Group getGroup(long groupId); void createGroup(String name, boolean isPrivate); void updateGroup(long groupId, String name, boolean isPrivate); void joinGroup(long groupId); void leaveGroup(long groupId);  }