@Test public void listPublicMembers() throws Exception { mockServer.expect(requestTo("https: .andExpect(method(HttpMethod.GET)) .andRespond( withSuccess(new ClassPathResource("listMembers.json", getClass()), MediaType.APPLICATION_JSON)); List<User> issueList = membersTemplate.listPublicMembers("zalando-stups"); Assertions.assertThat(issueList).isNotNull(); Assertions.assertThat(issueList.size()).isEqualTo(1); }
@Override public List<User> listPublicMembers(String organization) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); return fetchUsers("/orgs/{organization}/public_members?per_page=25", uriVariables); }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public List<User> listPublicMembers(String organization) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); return fetchUsers("/orgs/{organization}/public_members?per_page=25", uriVariables); } }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public List<User> listPublicMembers(String organization) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); return fetchUsers("/orgs/{organization}/public_members?per_page=25", uriVariables); } MembersTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);  MembersTemplate(RestOperations restOperations); }
MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public List<User> listPublicMembers(String organization) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); return fetchUsers("/orgs/{organization}/public_members?per_page=25", 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 List<User> listPublicMembers(String organization) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); return fetchUsers("/orgs/{organization}/public_members?per_page=25", 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);  }