Package org.sete.service.admin

Examples of org.sete.service.admin.UserRoleServiceImpl


     * 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();

        //null VO object test
View Full Code Here


     * 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);
       
        //test 1 object scenario
View Full Code Here

TOP

Related Classes of org.sete.service.admin.UserRoleServiceImpl

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.