mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merge pull request #1379 from Alfresco/feature/APPS-888
feature/APPS-888
This commit is contained in:
@@ -80,9 +80,6 @@ public class CompleteRecordTests extends BaseRMRestTest
|
||||
@DataProvider (name = "IncompleteRecordsMandatoryMetadataPresent")
|
||||
public Object[][] getIncompleteRecordsMandatoryMetadataPresent() throws Exception
|
||||
{
|
||||
//create RM site
|
||||
createRMSite(createStandardRMSiteModel());
|
||||
|
||||
// create electronic and non-electronic records
|
||||
return createAndVerifyRecordsInFolder();
|
||||
}
|
||||
@@ -93,7 +90,7 @@ public class CompleteRecordTests extends BaseRMRestTest
|
||||
@DataProvider (name = "Supplied node is not a record")
|
||||
public Object[][] getNodesWhichAreNotRecords() throws Exception
|
||||
{
|
||||
createRMSiteIfNotExists();
|
||||
createRMSite(createStandardRMSiteModel());
|
||||
return new String[][]
|
||||
{
|
||||
{ createCategoryFolderInFilePlan().getId() },
|
||||
@@ -113,7 +110,8 @@ public class CompleteRecordTests extends BaseRMRestTest
|
||||
@Test
|
||||
(
|
||||
dataProvider = "IncompleteRecordsMandatoryMetadataMissing",
|
||||
description = "Cannot complete electronic and non-electronic records with mandatory metadata missing"
|
||||
description = "Cannot complete electronic and non-electronic records with mandatory metadata missing",
|
||||
priority = 1
|
||||
)
|
||||
@AlfrescoTest (jira = "RM-4431")
|
||||
public void completeRecordWithMandatoryMetadataMissing(String electronicRecordId, String nonElectronicRecordId)
|
||||
@@ -174,7 +172,8 @@ public class CompleteRecordTests extends BaseRMRestTest
|
||||
@Test
|
||||
(
|
||||
dataProvider = "Supplied node is not a record",
|
||||
description = "Cannot complete a document that is not a record"
|
||||
description = "Cannot complete a document that is not a record",
|
||||
priority = 2
|
||||
)
|
||||
@AlfrescoTest (jira = "RM-4431")
|
||||
public void completeNonRecord(String nonRecordId) throws Exception
|
||||
@@ -195,7 +194,8 @@ public class CompleteRecordTests extends BaseRMRestTest
|
||||
@Test
|
||||
(
|
||||
dataProvider = "IncompleteRecordsMandatoryMetadataPresent",
|
||||
description = "Cannot complete a record that is already completed"
|
||||
description = "Cannot complete a record that is already completed",
|
||||
priority = 3
|
||||
)
|
||||
@AlfrescoTest (jira = "RM-4431")
|
||||
public void completeAlreadyCompletedRecord(String electronicRecordId, String nonElectronicRecordId)
|
||||
|
Reference in New Issue
Block a user