Package org.convey.user.registration.model

Examples of org.convey.user.registration.model.UserRole



    @Test
    public void testAddNewUserRole(){

        UserRole testUserRole1 = new UserRole();

        testUserRole1.setRoleName("ROLE_ADMIN");
        testUserRole1.setRoleDescription("Administrator Role");
        testUserRole1.setDateCreated(new Date());

        UserRole testUserRole1Persisted = userRoleDao.addNewUserRole(testUserRole1);

        Assert.assertEquals(testUserRole1,testUserRole1Persisted);


        UserRole testUserRole2 = new UserRole();

        testUserRole2.setRoleName("ROLE_CONSUMER");
        testUserRole2.setRoleDescription("Consumer User Role");
        testUserRole2.setDateCreated(new Date());

        UserRole testUserRole2Persisted = userRoleDao.addNewUserRole(testUserRole2);

        Assert.assertEquals(testUserRole2,testUserRole2Persisted);


    }// testAddNewUserRole
View Full Code Here

TOP

Related Classes of org.convey.user.registration.model.UserRole

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.