Search in sources :

Example 6 with HttpRequest

use of org.restlet.engine.adapter.HttpRequest in project OpenAM by OpenRock.

the class RestletRealmRouterTest method generateRequest.

private static HttpRequest generateRequest() {
    HttpRequest request = mock(HttpRequest.class);
    ConcurrentHashMap<String, Object> map = new ConcurrentHashMap<String, Object>();
    given(request.getAttributes()).willReturn(map);
    return request;
}
Also used : HttpRequest(org.restlet.engine.adapter.HttpRequest) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap)

Aggregations

HttpRequest (org.restlet.engine.adapter.HttpRequest)6 Test (org.testng.annotations.Test)3 SSOToken (com.iplanet.sso.SSOToken)2 HttpServletRequest (javax.servlet.http.HttpServletRequest)2 Request (org.restlet.Request)2 Response (org.restlet.Response)2 Restlet (org.restlet.Restlet)2 Form (org.restlet.data.Form)2 Header (org.restlet.data.Header)2 Reference (org.restlet.data.Reference)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 AccessTokenVerifier (org.forgerock.oauth2.core.AccessTokenVerifier)1 OAuth2Request (org.forgerock.oauth2.core.OAuth2Request)1 ChallengeResponse (org.restlet.data.ChallengeResponse)1 ChallengeScheme (org.restlet.data.ChallengeScheme)1 ServerCall (org.restlet.engine.adapter.ServerCall)1 ServletCall (org.restlet.ext.servlet.internal.ServletCall)1 Series (org.restlet.util.Series)1