use of org.forgerock.openam.sm.datalayer.impl.uma.UmaPendingRequest in project OpenAM by OpenRock.
the class PendingRequestResourceTest method mockPendingRequest.
private String mockPendingRequest() throws ResourceException {
UmaPendingRequest pendingRequest = new UmaPendingRequest("RESOURCE_SET_ID", "RESOURCE_SET_NAME", "RESOURCE_OWNER_ID", "REALM", "REQUESTING_PARTY_ID", Collections.singleton("SCOPE"));
pendingRequest.setId("PENDING_REQUEST_ID");
given(service.readPendingRequest("PENDING_REQUEST_ID")).willReturn(pendingRequest);
return "PENDING_REQUEST_ID";
}
Aggregations