mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4405: renamed valid containers data provider
This commit is contained in:
@@ -102,8 +102,8 @@ public class BaseRestTest extends RestTest
|
||||
public static final String RM_DESCRIPTION = "Records Management Site";
|
||||
|
||||
/** Valid root containers where electronic and non-electronic records can be created */
|
||||
@DataProvider(name = "validContainers")
|
||||
public Object[][] rootContainers() throws Exception {
|
||||
@DataProvider(name = "validRootContainers")
|
||||
public Object[][] getValidRootContainers() throws Exception {
|
||||
return new Object[][] {
|
||||
// an arbitrary record folder
|
||||
{ createCategoryFolderInFilePlan(dataUser.getAdminUser(), FILE_PLAN_ALIAS.toString()) },
|
||||
|
@@ -164,7 +164,7 @@ public class ElectronicRecordTests extends BaseRestTest
|
||||
*/
|
||||
@Test
|
||||
(
|
||||
dataProvider = "validContainers",
|
||||
dataProvider = "validRootContainers",
|
||||
description = "Electronic record can only be created if all mandatory properties are given"
|
||||
)
|
||||
public void canCreateElectronicRecordOnlyWithMandatoryProperties(FilePlanComponent container) throws Exception
|
||||
@@ -209,7 +209,7 @@ public class ElectronicRecordTests extends BaseRestTest
|
||||
*/
|
||||
@Test
|
||||
(
|
||||
dataProvider = "validContainers",
|
||||
dataProvider = "validRootContainers",
|
||||
description = "Electronic records can be created in unfiled record folder or unfiled record root"
|
||||
)
|
||||
public void canCreateElectronicRecordsInValidContainers(FilePlanComponent container) throws Exception
|
||||
|
@@ -138,7 +138,7 @@ public class NonElectronicRecordTests extends BaseRestTest
|
||||
*/
|
||||
@Test
|
||||
(
|
||||
dataProvider = "validContainers",
|
||||
dataProvider = "validRootContainers",
|
||||
description = "Non-electronic records can be created in valid containers"
|
||||
)
|
||||
public void canCreateInValidContainers(FilePlanComponent container) throws Exception
|
||||
@@ -251,7 +251,7 @@ public class NonElectronicRecordTests extends BaseRestTest
|
||||
*/
|
||||
@Test
|
||||
(
|
||||
dataProvider = "validContainers",
|
||||
dataProvider = "validRootContainers",
|
||||
description = "Non-electronic record can only be created if all mandatory properties are given"
|
||||
)
|
||||
public void allMandatoryPropertiesRequired(FilePlanComponent container) throws Exception
|
||||
@@ -310,7 +310,7 @@ public class NonElectronicRecordTests extends BaseRestTest
|
||||
*/
|
||||
@Test
|
||||
(
|
||||
dataProvider = "validContainers",
|
||||
dataProvider = "validRootContainers",
|
||||
description = "Non-electronic record can't be created if user doesn't have RM privileges"
|
||||
)
|
||||
public void cantCreateIfNoRmPrivileges(FilePlanComponent container) throws Exception
|
||||
|
Reference in New Issue
Block a user