CCM NG: Fixed some test failures

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5127 8810af33-2d31-482b-a856-94f89814c4df

Former-commit-id: f717f54093
pull/2/head
jensp 2017-11-21 16:28:47 +00:00
parent adba0f5e59
commit 1a3a38f3bf
1 changed files with 4 additions and 4 deletions

View File

@ -631,10 +631,10 @@ public class PermissionManagerTest {
* *
* @throws Throwable * @throws Throwable
*/ */
@Test(expected = NullPointerException.class) @Test(expected = IllegalArgumentException.class)
@UsingDataSet( @UsingDataSet(
"datasets/org/libreccm/security/PermissionManagerTest/data.yml") "datasets/org/libreccm/security/PermissionManagerTest/data.yml")
@ShouldThrowException(NullPointerException.class) @ShouldThrowException(IllegalArgumentException.class)
@InSequence(345) @InSequence(345)
public void revokePermissionOnObjectFromRoleNull() throws Throwable { public void revokePermissionOnObjectFromRoleNull() throws Throwable {
final CcmObject object1 = ccmObjectRepository.findById(-20001L).get(); final CcmObject object1 = ccmObjectRepository.findById(-20001L).get();
@ -657,10 +657,10 @@ public class PermissionManagerTest {
* *
* @throws Throwable * @throws Throwable
*/ */
@Test(expected = NullPointerException.class) @Test(expected = IllegalArgumentException.class)
@UsingDataSet( @UsingDataSet(
"datasets/org/libreccm/security/PermissionManagerTest/data.yml") "datasets/org/libreccm/security/PermissionManagerTest/data.yml")
@ShouldThrowException(NullPointerException.class) @ShouldThrowException(IllegalArgumentException.class)
@InSequence(350) @InSequence(350)
public void revokePermissionNullObject() throws Throwable { public void revokePermissionNullObject() throws Throwable {
final Role role1 = roleRepository.findByName("role1").get(); final Role role1 = roleRepository.findByName("role1").get();