@Test public void testCreateGroup(){ mockServer.expect(requestTo("https: .andExpect(method(POST)) .andRespond(withSuccess("", MediaType.TEXT_PLAIN)); yammerTemplate.groupOperations().createGroup("foo", false); }
public void createGroup(String name, boolean isPrivate) { LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(); params.set("name",name); params.set("private", String.valueOf(isPrivate)); restTemplate.postForEntity(buildUri("groups"), params, String.class); }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public void createGroup(String name, boolean isPrivate) { LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(); params.set("name",name); params.set("private", String.valueOf(isPrivate)); restTemplate.postForEntity(buildUri("groups"), params, String.class); } }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public void createGroup(String name, boolean isPrivate) { LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(); params.set("name",name); params.set("private", String.valueOf(isPrivate)); restTemplate.postForEntity(buildUri("groups"), params, String.class); } GroupTemplate(RestTemplate restTemplate); }
GroupTemplate extends AbstractYammerOperations implements GroupOperations { public void createGroup(String name, boolean isPrivate) { LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(); params.set("name",name); params.set("private", String.valueOf(isPrivate)); restTemplate.postForEntity(buildUri("groups"), params, String.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 void createGroup(String name, boolean isPrivate) { LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(); params.set("name",name); params.set("private", String.valueOf(isPrivate)); restTemplate.postForEntity(buildUri("groups"), params, String.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);  }