@Test public void testReadGroupsWithPagedByIdentityResponse() throws IOException { JsonNode jsonResponse = readResponseGroupsAsJsonNodeFromFile("read_groups_identity_paging.json"); String startId = "aaaa"; wireMockServer.stubFor(get(urlEqualTo(String.format("/Groups?startId=%s&count=100", startId))).willReturn(configureMockedResponse(OK, jsonResponse))); SCIMResponse<PagedByIdentitySearchResult<Group>> resp = SCIMClientService.builder(DEFAULT_URL) .build() .buildGroupRequest() .readMultipleGroups(identityPageQuery().withStartId(startId).withCount(100)); PagedByIdentitySearchResult<Group> receivedResponse = resp.get(); assertAll( () -> assertAll(getPagedByIdentityResponseAssertions(receivedResponse)), () -> { Group group = receivedResponse.getResources().stream().findAny().orElseThrow(RuntimeException::new); assertAll("Common resourceAttributes", getCommonResourceAssertions(group, Group.SCHEMA)); assertNotNull(group.getDisplayName()); } ); }
public SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<Group>>(){}); }
GroupRequest { public SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<Group>>(){}); } }
GroupRequest { public SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<Group>>(){}); } GroupRequest(WebTarget targetSystem, SCIMRequest scimRequest); }
GroupRequest { public SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<Group>>(){}); } GroupRequest(WebTarget targetSystem, SCIMRequest scimRequest); SCIMResponse<Group> createGroup(Group group); SCIMResponse<Group> readSingleGroup(String id); SCIMResponse<PagedByIndexSearchResult<Group>> readAllGroups(); SCIMResponse<PagedByIndexSearchResult<Group>> readAllGroups(String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(String filter); SCIMResponse<PagedByIdentitySearchResult<Group>> readMultipleGroups(IdentityPageQuery identityPageQuery); SCIMResponse<PagedByIdentitySearchResult<Group>> readMultipleGroups(IdentityPageQuery identityPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(IndexPageQuery indexPageQuery); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(IndexPageQuery indexPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroupsWithoutPaging(); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroupsWithoutPaging(String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroupsIndexed(Response response); SCIMResponse<Group> updateGroup(Group group); SCIMResponse<Void> patchGroup(PatchBody patchBody, String groupId); SCIMResponse<Void> deleteGroup(String groupId); }
GroupRequest { public SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<Group>>(){}); } GroupRequest(WebTarget targetSystem, SCIMRequest scimRequest); SCIMResponse<Group> createGroup(Group group); SCIMResponse<Group> readSingleGroup(String id); SCIMResponse<PagedByIndexSearchResult<Group>> readAllGroups(); SCIMResponse<PagedByIndexSearchResult<Group>> readAllGroups(String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(String filter); SCIMResponse<PagedByIdentitySearchResult<Group>> readMultipleGroups(IdentityPageQuery identityPageQuery); SCIMResponse<PagedByIdentitySearchResult<Group>> readMultipleGroups(IdentityPageQuery identityPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(IndexPageQuery indexPageQuery); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroups(IndexPageQuery indexPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroupsWithoutPaging(); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroupsWithoutPaging(String filter); SCIMResponse<PagedByIndexSearchResult<Group>> readMultipleGroupsIndexed(Response response); SCIMResponse<Group> updateGroup(Group group); SCIMResponse<Void> patchGroup(PatchBody patchBody, String groupId); SCIMResponse<Void> deleteGroup(String groupId);  }