use of org.craftercms.security.processors.RequestSecurityProcessorChain in project engine by craftercms.
the class ConfigAwareUrlAccessRestrictionCheckingProcessorTest method testProcessRequest.
@Test(expected = AccessDeniedException.class)
public void testProcessRequest() throws Exception {
RequestContext requestContext = RequestContext.getCurrent();
RequestSecurityProcessorChain chain = mock(RequestSecurityProcessorChain.class);
SecurityUtils.setAuthentication(requestContext.getRequest(), new DefaultAuthentication(ObjectId.get().toString(), new Profile()));
processor.processRequest(requestContext, chain);
}
Aggregations