Search in sources :

Example 11 with UmaPendingRequest

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";
}
Also used : UmaPendingRequest(org.forgerock.openam.sm.datalayer.impl.uma.UmaPendingRequest)

Aggregations

UmaPendingRequest (org.forgerock.openam.sm.datalayer.impl.uma.UmaPendingRequest)11 ArrayList (java.util.ArrayList)2 HttpServletRequest (javax.servlet.http.HttpServletRequest)2 InternalServerErrorException (org.forgerock.json.resource.InternalServerErrorException)2 NotSupportedException (org.forgerock.json.resource.NotSupportedException)2 ResourceException (org.forgerock.json.resource.ResourceException)2 NotFoundException (org.forgerock.openam.sm.datalayer.store.NotFoundException)2 ServerException (org.forgerock.openam.sm.datalayer.store.ServerException)2 Test (org.testng.annotations.Test)2 AMIdentity (com.sun.identity.idm.AMIdentity)1 HashSet (java.util.HashSet)1 MessagingException (javax.mail.MessagingException)1 JsonValue (org.forgerock.json.JsonValue)1 ResourceResponse (org.forgerock.json.resource.ResourceResponse)1 RealmContext (org.forgerock.openam.rest.RealmContext)1 Context (org.forgerock.services.context.Context)1 Promise (org.forgerock.util.promise.Promise)1