use of com.sun.identity.security.AdminTokenAction in project OpenAM by OpenRock.
the class XacmlServiceTest method setup.
@BeforeMethod
public void setup() throws Exception {
this.importExport = mock(XACMLExportImport.class);
this.debug = mock(Debug.class);
this.adminTokenAction = mock(AdminTokenAction.class);
doAnswer(ssoTokenAnswer).when(adminTokenAction).run();
this.service = new XacmlServiceTestWrapper(importExport, adminTokenAction, this.debug, null, null, jacksonRepresentationFactory);
this.request = mock(Request.class);
doReturn(REQUEST_ATTRIBUTES).when(request).getAttributes();
this.response = mock(Response.class);
service.setRequest(request);
service.setResponse(response);
query = new Form();
service = spy(service);
doReturn(query).when(service).getQuery();
}
Aggregations