Package org.openengsb.domain.userprojects.model

Examples of org.openengsb.domain.userprojects.model.Assignment


        assertAttributesCorrectlyStored(user);
    }

    @Test
    public void testDeleteAssignments_shouldDelete() {
        Assignment assignment = createTestAssignment();
        List<Assignment> list = Lists.newArrayList(assignment);
        ldapService.updateAssignments(list);
        Dn dn = DnFactory.assignment(assignment);
        assertThat(ldapDao.exists(dn), is(true));
        ldapService.deleteAssignments(list);
View Full Code Here


        ldapDao.deleteSubtreeExcludingRoot(DnFactory.roles());
        ldapDao.deleteSubtreeExcludingRoot(DnFactory.users());
    }

    protected Assignment createTestAssignment() {
        Assignment assignment = new Assignment();
        assignment.setPermissions(Lists.newArrayList("permission1", "permission2"));
        assignment.setProject("project");
        assignment.setRoles(Lists.newArrayList("role1", "role2"));
        assignment.setUser("user");
        return assignment;
    }
View Full Code Here

TOP

Related Classes of org.openengsb.domain.userprojects.model.Assignment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.