use of edu.stanford.bmir.protege.web.server.dispatch.RequestContext in project webprotege by protegeproject.
the class GetProjectPermissionsActionHandler_TestCase method shouldAllowAnyOneToRetrievePermissions.
@Test
public void shouldAllowAnyOneToRetrievePermissions() {
RequestContext requestContext = mock(RequestContext.class);
when(requestContext.getUserId()).thenReturn(UserId.getGuest());
RequestValidator validator = handler.getRequestValidator(action, requestContext);
assertThat(validator.validateAction().isValid(), is(true));
}
Aggregations