From 1410e7fe3f1bca03f8fb96d928289b6629575c9a Mon Sep 17 00:00:00 2001 From: jensp Date: Tue, 2 May 2017 09:06:52 +0000 Subject: [PATCH] CCM NG/ccm-cms: Fixed some test failures git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4700 8810af33-2d31-482b-a856-94f89814c4df Former-commit-id: 72827e8e3d0556f6190bc8652b49bab4360ca822 --- .../librecms/contentsection/ContentItemManagerTest.java | 8 ++++---- .../org/librecms/contentsection/FolderManagerTest.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ccm-cms/src/test/java/org/librecms/contentsection/ContentItemManagerTest.java b/ccm-cms/src/test/java/org/librecms/contentsection/ContentItemManagerTest.java index 8f2a94406..57eb37414 100644 --- a/ccm-cms/src/test/java/org/librecms/contentsection/ContentItemManagerTest.java +++ b/ccm-cms/src/test/java/org/librecms/contentsection/ContentItemManagerTest.java @@ -336,13 +336,13 @@ public class ContentItemManagerTest { * is called with {@code null} for the folder in which the new item is * created. */ - @Test(expected = IllegalArgumentException.class) + @Test(expected = NullPointerException.class) @InSequence(1500) @UsingDataSet("datasets/org/librecms/contentsection/" + "ContentItemManagerTest/data.xml") @ShouldMatchDataSet("datasets/org/librecms/contentsection/" + "ContentItemManagerTest/data.xml") - @ShouldThrowException(IllegalArgumentException.class) + @ShouldThrowException(NullPointerException.class) public void createItemFolderIsNull() { shiro.getSystemUser().execute(() -> { final ContentSection section = sectionRepo @@ -508,13 +508,13 @@ public class ContentItemManagerTest { * throws an {@link IllegalArgumentException} if called with {@code null} * for the folder in which the new item is created. */ - @Test(expected = IllegalArgumentException.class) + @Test(expected = NullPointerException.class) @InSequence(2600) @UsingDataSet("datasets/org/librecms/contentsection/" + "ContentItemManagerTest/data.xml") @ShouldMatchDataSet("datasets/org/librecms/contentsection/" + "ContentItemManagerTest/data.xml") - @ShouldThrowException(IllegalArgumentException.class) + @ShouldThrowException(NullPointerException.class) public void createItemFolderIsNullWithWorkflow() { shiro.getSystemUser().execute(() -> { final ContentSection section = sectionRepo diff --git a/ccm-cms/src/test/java/org/librecms/contentsection/FolderManagerTest.java b/ccm-cms/src/test/java/org/librecms/contentsection/FolderManagerTest.java index 3f5822d23..5e8e2cf16 100644 --- a/ccm-cms/src/test/java/org/librecms/contentsection/FolderManagerTest.java +++ b/ccm-cms/src/test/java/org/librecms/contentsection/FolderManagerTest.java @@ -390,26 +390,26 @@ public class FolderManagerTest { folderManager.moveFolder(folder, folder); } - @Test(expected = IllegalArgumentException.class) + @Test(expected = NullPointerException.class) @UsingDataSet("datasets/org/librecms/contentsection/" + "FolderManagerTest/data.xml") @ShouldMatchDataSet( value = "datasets/org/librecms/contentsection/" + "FolderManagerTest/data.xml") - @ShouldThrowException(IllegalArgumentException.class) + @ShouldThrowException(NullPointerException.class) @InSequence(3200) public void moveFolderNull() { final Folder target = folderRepo.findById(-2010L).get(); folderManager.moveFolder(null, target); } - @Test(expected = IllegalArgumentException.class) + @Test(expected = NullPointerException.class) @UsingDataSet("datasets/org/librecms/contentsection/" + "FolderManagerTest/data.xml") @ShouldMatchDataSet( value = "datasets/org/librecms/contentsection/" + "FolderManagerTest/data.xml") - @ShouldThrowException(IllegalArgumentException.class) + @ShouldThrowException(NullPointerException.class) @InSequence(3210) public void moveFolderTargetNull() { final Folder folder = folderRepo.findById(-2008L).get();