Search in sources :

Example 1 with TrustedDevicesResource

use of org.forgerock.openam.core.rest.devices.TrustedDevicesResource in project OpenAM by OpenRock.

the class TrustedDevicesResourceTest method setUp.

@BeforeMethod
public void setUp() {
    dao = mock(TrustedDevicesDao.class);
    contextHelper = mock(ContextHelper.class);
    resource = new TrustedDevicesResource(dao, contextHelper);
    given(contextHelper.getUserId((Context) anyObject())).willReturn("demo");
}
Also used : ContextHelper(org.forgerock.openam.rest.resource.ContextHelper) TrustedDevicesResource(org.forgerock.openam.core.rest.devices.TrustedDevicesResource) TrustedDevicesDao(org.forgerock.openam.core.rest.devices.TrustedDevicesDao) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

TrustedDevicesDao (org.forgerock.openam.core.rest.devices.TrustedDevicesDao)1 TrustedDevicesResource (org.forgerock.openam.core.rest.devices.TrustedDevicesResource)1 ContextHelper (org.forgerock.openam.rest.resource.ContextHelper)1 BeforeMethod (org.testng.annotations.BeforeMethod)1