Search in sources :

Example 6 with Project

use of io.crnk.security.model.Project in project crnk-framework by crnk-project.

the class SecurityModuleIntTest method unauthorizedException.

@Test(expected = UnauthorizedException.class)
public void unauthorizedException() {
    identityManager.addUser("otherUser", "doePass", "allRole");
    Project project = new Project();
    project.setId(1L);
    project.setName("test");
    projectRepo.create(project);
}
Also used : Project(io.crnk.security.model.Project) Test(org.junit.Test)

Aggregations

Project (io.crnk.security.model.Project)6 Test (org.junit.Test)6 QuerySpec (io.crnk.core.queryspec.QuerySpec)4