Package org.sete.enterprise.dao.admin

Examples of org.sete.enterprise.dao.admin.UserRoleDao


     * Also, to obtain 100% coverage, we should also test the case where a new privilege assignment has been added
     * while the old one is not assigned anymore: this covers the code for adding a new privilege and removing and existing one.*/
    public void testUpdateUserRole() throws Exception
    {
        //prepare the userRole mock object and init the service
        final UserRoleDao roleDao = EasyMock.createMock( UserRoleDao.class );
        final UserRoleServiceImpl roleService = new UserRoleServiceImpl();
        roleService.setUserRoleDao(roleDao);
       
        //prepare types needed during run
        TestUtils.prepareTypes();
View Full Code Here


     * the objects returned by Hybernate DAO layer.
     * The equivalence classes for this test are: no DAO objects, 1 DAO object, 2 or more DAO objects.*/
    public void testLoadAllUserRoles() throws Exception
    {
        //prepare the userRole mock object and init the service
        final UserRoleDao roleDao = EasyMock.createMock( UserRoleDao.class );
        final UserRoleServiceImpl roleService = new UserRoleServiceImpl();
        roleService.setUserRoleDao(roleDao);
       
        //test no objects scenario
        testNoUserRoleLoad(roleDao, roleService);
View Full Code Here

TOP

Related Classes of org.sete.enterprise.dao.admin.UserRoleDao

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.