@Test public void removeMember() throws Exception { mockServer.expect(requestTo("https: .andExpect(method(HttpMethod.DELETE)) .andRespond(withNoContent()); membersTemplate.removeFromOrganization("zalando-stups", "klaus"); }
@Override public void removeFromOrganization(String organization, String username) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); uriVariables.put("username", username); getRestOperations().delete(buildUri("/orgs/{organization}/members/{username}", uriVariables)); }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public void removeFromOrganization(String organization, String username) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); uriVariables.put("username", username); getRestOperations().delete(buildUri("/orgs/{organization}/members/{username}", uriVariables)); } }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public void removeFromOrganization(String organization, String username) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); uriVariables.put("username", username); getRestOperations().delete(buildUri("/orgs/{organization}/members/{username}", uriVariables)); } MembersTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);  MembersTemplate(RestOperations restOperations); }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public void removeFromOrganization(String organization, String username) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); uriVariables.put("username", username); getRestOperations().delete(buildUri("/orgs/{organization}/members/{username}", uriVariables)); } MembersTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);  MembersTemplate(RestOperations restOperations); @Override List<User> listMembers(String organization); @Override List<User> listPublicMembers(String organization); @Override boolean isMemberOfOrganization(String organization, String username); @Override boolean isPublicMemberOfOrganization(String organization, String username); @Override void removeFromOrganization(String organization, String username); }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public void removeFromOrganization(String organization, String username) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); uriVariables.put("username", username); getRestOperations().delete(buildUri("/orgs/{organization}/members/{username}", uriVariables)); } MembersTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);  MembersTemplate(RestOperations restOperations); @Override List<User> listMembers(String organization); @Override List<User> listPublicMembers(String organization); @Override boolean isMemberOfOrganization(String organization, String username); @Override boolean isPublicMemberOfOrganization(String organization, String username); @Override void removeFromOrganization(String organization, String username);  }