use of edu.stanford.bmir.protege.web.shared.project.CreateNewProjectAction in project webprotege by protegeproject.
the class CreateNewProjectActionHandler_TestCase method shouldNotAllowGuestsToCreateProjects.
@Test
public void shouldNotAllowGuestsToCreateProjects() {
when(userId.isGuest()).thenReturn(true);
CreateNewProjectAction action = new CreateNewProjectAction(newProjectSettings);
RequestValidator validator = handler.getRequestValidator(action, requestContext);
RequestValidationResult validationResult = validator.validateAction();
assertThat(validationResult.isValid(), is(false));
}
Aggregations