CCM NG: Fixed some test failures
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5127 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
0735255e6e
commit
3d7c4b367f
|
|
@ -631,10 +631,10 @@ public class PermissionManagerTest {
|
|||
*
|
||||
* @throws Throwable
|
||||
*/
|
||||
@Test(expected = NullPointerException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@UsingDataSet(
|
||||
"datasets/org/libreccm/security/PermissionManagerTest/data.yml")
|
||||
@ShouldThrowException(NullPointerException.class)
|
||||
@ShouldThrowException(IllegalArgumentException.class)
|
||||
@InSequence(345)
|
||||
public void revokePermissionOnObjectFromRoleNull() throws Throwable {
|
||||
final CcmObject object1 = ccmObjectRepository.findById(-20001L).get();
|
||||
|
|
@ -657,10 +657,10 @@ public class PermissionManagerTest {
|
|||
*
|
||||
* @throws Throwable
|
||||
*/
|
||||
@Test(expected = NullPointerException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@UsingDataSet(
|
||||
"datasets/org/libreccm/security/PermissionManagerTest/data.yml")
|
||||
@ShouldThrowException(NullPointerException.class)
|
||||
@ShouldThrowException(IllegalArgumentException.class)
|
||||
@InSequence(350)
|
||||
public void revokePermissionNullObject() throws Throwable {
|
||||
final Role role1 = roleRepository.findByName("role1").get();
|
||||
|
|
|
|||
Loading…
Reference in New Issue