Search in sources :

Example 1 with ApplicationV1Filter

use of org.forgerock.openam.entitlement.rest.ApplicationV1Filter in project OpenAM by OpenRock.

the class ApplicationV1FilterTest method setUp.

@BeforeMethod
public void setUp() {
    MockitoAnnotations.initMocks(this);
    EntitlementsExceptionMappingHandler resourceErrorHandler = new EntitlementsExceptionMappingHandler(EntitlementRestGuiceModule.getEntitlementsErrorHandlers());
    filter = new ApplicationV1Filter(resourceTypeService, applicationServiceFactory, resourceErrorHandler, contextHelper, applicationTransformer, debug);
    subject = new Subject();
}
Also used : EntitlementsExceptionMappingHandler(org.forgerock.openam.entitlement.rest.EntitlementsExceptionMappingHandler) ApplicationV1Filter(org.forgerock.openam.entitlement.rest.ApplicationV1Filter) Subject(javax.security.auth.Subject) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

Subject (javax.security.auth.Subject)1 ApplicationV1Filter (org.forgerock.openam.entitlement.rest.ApplicationV1Filter)1 EntitlementsExceptionMappingHandler (org.forgerock.openam.entitlement.rest.EntitlementsExceptionMappingHandler)1 BeforeMethod (org.testng.annotations.BeforeMethod)1