mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-6796 Added automated tests for Declare and file to a record folder functionality
This commit is contained in:
@@ -100,10 +100,16 @@ public class DeclareDocumentAsRecordTests extends BaseRMRestTest
|
||||
* And it is now a record
|
||||
* And it remains a secondary child of the starting location where I can still view it
|
||||
* <pre>
|
||||
*
|
||||
* RM-6779
|
||||
* Given I declare a record using the v1 API
|
||||
* When I do not provide a location parameter
|
||||
* Then the record is declared in the unfiled folder
|
||||
*
|
||||
* @throws Exception for malformed JSON API response
|
||||
*/
|
||||
@Test(description = "User with correct permissions can declare document as a record")
|
||||
@AlfrescoTest(jira = "RM-4429")
|
||||
@AlfrescoTest(jira = "RM-4429, RM-6779")
|
||||
public void userWithPrivilegesCanDeclareDocumentAsRecord() throws Exception
|
||||
{
|
||||
// create document in a folder in a collaboration site
|
||||
|
@@ -68,7 +68,7 @@ public class FileRecordsTests extends BaseRMRestTest
|
||||
{
|
||||
private UnfiledContainerChild electronicRecord = UnfiledContainerChild.builder()
|
||||
.name(ELECTRONIC_RECORD_NAME)
|
||||
.nodeType(CONTENT_TYPE.toString())
|
||||
.nodeType(CONTENT_TYPE)
|
||||
.content(RecordContent.builder().mimeType("text/plain").build())
|
||||
.build();
|
||||
|
||||
@@ -78,14 +78,14 @@ public class FileRecordsTests extends BaseRMRestTest
|
||||
.title("Title")
|
||||
.build())
|
||||
.name(NONELECTRONIC_RECORD_NAME)
|
||||
.nodeType(NON_ELECTRONIC_RECORD_TYPE.toString())
|
||||
.nodeType(NON_ELECTRONIC_RECORD_TYPE)
|
||||
.build();
|
||||
|
||||
/**
|
||||
* Invalid containers where electronic and non-electronic records can be filed
|
||||
*/
|
||||
@DataProvider (name = "invalidContainersToFile")
|
||||
public String[][] getFolderContainers() throws Exception
|
||||
public Object[][] getFolderContainers() throws Exception
|
||||
{
|
||||
return new String[][] {
|
||||
{ FILE_PLAN_ALIAS},
|
||||
|
Reference in New Issue
Block a user