use of io.crnk.security.model.Task in project crnk-framework by crnk-project.
the class SecurityModuleIntTest method forbiddenPost.
@Test(expected = ForbiddenException.class)
public void forbiddenPost() {
identityManager.addUser("doe", "doePass", "getRole");
Task task = new Task();
task.setId(1L);
task.setName("test");
taskRepo.create(task);
}
use of io.crnk.security.model.Task in project crnk-framework by crnk-project.
the class SecurityModuleIntTest method permitAllNoMatch.
@Test(expected = ForbiddenException.class)
public void permitAllNoMatch() {
identityManager.addUser("doe", "doePass");
Task task = new Task();
task.setId(1L);
task.setName("test");
taskRepo.create(task);
}