Search in sources :

Example 1 with ApplicationTypesResource

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

the class ApplicationTypesResourceTest method setUp.

@BeforeMethod
public void setUp() {
    typeManager = mock(ApplicationTypeManagerWrapper.class);
    testResource = new ApplicationTypesResource(typeManager, mock(Debug.class));
    mockApplicationTypeManager = mock(ApplicationTypeManagerWrapper.class);
    mockDebug = mock(Debug.class);
    testResource = new ApplicationTypesResource(mockApplicationTypeManager, mockDebug) {

        @Override
        protected List<ResourceResponse> getResourceResponses(List<ApplicationTypeWrapper> types) {
            return null;
        }
    };
}
Also used : ApplicationTypeWrapper(org.forgerock.openam.entitlement.rest.wrappers.ApplicationTypeWrapper) ApplicationTypeManagerWrapper(org.forgerock.openam.entitlement.rest.wrappers.ApplicationTypeManagerWrapper) List(java.util.List) ApplicationTypesResource(org.forgerock.openam.entitlement.rest.ApplicationTypesResource) Debug(com.sun.identity.shared.debug.Debug) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

Debug (com.sun.identity.shared.debug.Debug)1 List (java.util.List)1 ApplicationTypesResource (org.forgerock.openam.entitlement.rest.ApplicationTypesResource)1 ApplicationTypeManagerWrapper (org.forgerock.openam.entitlement.rest.wrappers.ApplicationTypeManagerWrapper)1 ApplicationTypeWrapper (org.forgerock.openam.entitlement.rest.wrappers.ApplicationTypeWrapper)1 BeforeMethod (org.testng.annotations.BeforeMethod)1