示例#1
0
 @Test
 public void addedUserRoleFoundByName() {
   assertEquals(existingRole, userRoleService.findByName("user"));
 }
示例#2
0
 @Test
 public void nonExistingUserRoleNotFoundByName() {
   assertNull(userRoleService.findByName("nonExistingName"));
 }
示例#3
0
 @Before
 public void setUp() {
   existingRole = userRoleService.findByName("user");
 }