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: 72827e8e3d
pull/2/head
parent
8e70f29f3a
commit
1410e7fe3f
|
|
@ -336,13 +336,13 @@ public class ContentItemManagerTest {
|
||||||
* is called with {@code null} for the folder in which the new item is
|
* is called with {@code null} for the folder in which the new item is
|
||||||
* created.
|
* created.
|
||||||
*/
|
*/
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = NullPointerException.class)
|
||||||
@InSequence(1500)
|
@InSequence(1500)
|
||||||
@UsingDataSet("datasets/org/librecms/contentsection/"
|
@UsingDataSet("datasets/org/librecms/contentsection/"
|
||||||
+ "ContentItemManagerTest/data.xml")
|
+ "ContentItemManagerTest/data.xml")
|
||||||
@ShouldMatchDataSet("datasets/org/librecms/contentsection/"
|
@ShouldMatchDataSet("datasets/org/librecms/contentsection/"
|
||||||
+ "ContentItemManagerTest/data.xml")
|
+ "ContentItemManagerTest/data.xml")
|
||||||
@ShouldThrowException(IllegalArgumentException.class)
|
@ShouldThrowException(NullPointerException.class)
|
||||||
public void createItemFolderIsNull() {
|
public void createItemFolderIsNull() {
|
||||||
shiro.getSystemUser().execute(() -> {
|
shiro.getSystemUser().execute(() -> {
|
||||||
final ContentSection section = sectionRepo
|
final ContentSection section = sectionRepo
|
||||||
|
|
@ -508,13 +508,13 @@ public class ContentItemManagerTest {
|
||||||
* throws an {@link IllegalArgumentException} if called with {@code null}
|
* throws an {@link IllegalArgumentException} if called with {@code null}
|
||||||
* for the folder in which the new item is created.
|
* for the folder in which the new item is created.
|
||||||
*/
|
*/
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = NullPointerException.class)
|
||||||
@InSequence(2600)
|
@InSequence(2600)
|
||||||
@UsingDataSet("datasets/org/librecms/contentsection/"
|
@UsingDataSet("datasets/org/librecms/contentsection/"
|
||||||
+ "ContentItemManagerTest/data.xml")
|
+ "ContentItemManagerTest/data.xml")
|
||||||
@ShouldMatchDataSet("datasets/org/librecms/contentsection/"
|
@ShouldMatchDataSet("datasets/org/librecms/contentsection/"
|
||||||
+ "ContentItemManagerTest/data.xml")
|
+ "ContentItemManagerTest/data.xml")
|
||||||
@ShouldThrowException(IllegalArgumentException.class)
|
@ShouldThrowException(NullPointerException.class)
|
||||||
public void createItemFolderIsNullWithWorkflow() {
|
public void createItemFolderIsNullWithWorkflow() {
|
||||||
shiro.getSystemUser().execute(() -> {
|
shiro.getSystemUser().execute(() -> {
|
||||||
final ContentSection section = sectionRepo
|
final ContentSection section = sectionRepo
|
||||||
|
|
|
||||||
|
|
@ -390,26 +390,26 @@ public class FolderManagerTest {
|
||||||
folderManager.moveFolder(folder, folder);
|
folderManager.moveFolder(folder, folder);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = NullPointerException.class)
|
||||||
@UsingDataSet("datasets/org/librecms/contentsection/"
|
@UsingDataSet("datasets/org/librecms/contentsection/"
|
||||||
+ "FolderManagerTest/data.xml")
|
+ "FolderManagerTest/data.xml")
|
||||||
@ShouldMatchDataSet(
|
@ShouldMatchDataSet(
|
||||||
value = "datasets/org/librecms/contentsection/"
|
value = "datasets/org/librecms/contentsection/"
|
||||||
+ "FolderManagerTest/data.xml")
|
+ "FolderManagerTest/data.xml")
|
||||||
@ShouldThrowException(IllegalArgumentException.class)
|
@ShouldThrowException(NullPointerException.class)
|
||||||
@InSequence(3200)
|
@InSequence(3200)
|
||||||
public void moveFolderNull() {
|
public void moveFolderNull() {
|
||||||
final Folder target = folderRepo.findById(-2010L).get();
|
final Folder target = folderRepo.findById(-2010L).get();
|
||||||
folderManager.moveFolder(null, target);
|
folderManager.moveFolder(null, target);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = NullPointerException.class)
|
||||||
@UsingDataSet("datasets/org/librecms/contentsection/"
|
@UsingDataSet("datasets/org/librecms/contentsection/"
|
||||||
+ "FolderManagerTest/data.xml")
|
+ "FolderManagerTest/data.xml")
|
||||||
@ShouldMatchDataSet(
|
@ShouldMatchDataSet(
|
||||||
value = "datasets/org/librecms/contentsection/"
|
value = "datasets/org/librecms/contentsection/"
|
||||||
+ "FolderManagerTest/data.xml")
|
+ "FolderManagerTest/data.xml")
|
||||||
@ShouldThrowException(IllegalArgumentException.class)
|
@ShouldThrowException(NullPointerException.class)
|
||||||
@InSequence(3210)
|
@InSequence(3210)
|
||||||
public void moveFolderTargetNull() {
|
public void moveFolderTargetNull() {
|
||||||
final Folder folder = folderRepo.findById(-2008L).get();
|
final Folder folder = folderRepo.findById(-2008L).get();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue