Search in sources :

Example 1 with Task

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);
}
Also used : Task(io.crnk.security.model.Task) Test(org.junit.Test)

Example 2 with 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);
}
Also used : Task(io.crnk.security.model.Task) Test(org.junit.Test)

Aggregations

Task (io.crnk.security.model.Task)2 Test (org.junit.Test)2