diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java index d88d2b3a3f..f993bd8998 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java @@ -223,7 +223,7 @@ public class RecordFolderAPI extends RMModelRequest /** * Create a record from file resource * - * @param electronicRecordModel {@link Record} for electronic record to be created + * @param recordModel {@link Record} for electronic record to be created * @param recordContent {@link File} pointing to the content of the electronic record to be created * @param recordFolderId The identifier of a record folder * @return newly created {@link Record} diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordfolders/RecordFolderTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordfolders/RecordFolderTests.java index 2843995a80..6381fe88f9 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordfolders/RecordFolderTests.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordfolders/RecordFolderTests.java @@ -131,7 +131,7 @@ public class RecordFolderTests extends BaseRMRestTest /** *
* Given that RM site is created - * When I use the API to create a children inside a record folder with wron types + * When I use the API to create a children of wrong type inside a record folder * Then the operation fails **/ @@ -141,7 +141,7 @@ public class RecordFolderTests extends BaseRMRestTest dataProvider = "childrenNotAllowedForFolder" ) - public void createRecordFolderIntoSpecialContainers(String nodeType) throws Exception + public void createInvalidChildrenForFolder(String nodeType) throws Exception { //create a record folder RecordCategoryChild folder = createCategoryFolderInFilePlan(); diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/unfiledrecordfolders/UnfiledRecordsFolderTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/unfiledrecordfolders/UnfiledRecordsFolderTests.java index cfca221474..7e6c18b500 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/unfiledrecordfolders/UnfiledRecordsFolderTests.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/unfiledrecordfolders/UnfiledRecordsFolderTests.java @@ -106,7 +106,7 @@ public class UnfiledRecordsFolderTests extends BaseRMRestTest { getRestAPIFactory().getUnfiledContainersAPI().getUnfiledContainer(UNFILED_RECORDS_CONTAINER_ALIAS).getId() }, { getRestAPIFactory().getTransferContainerAPI().getTransferContainer(TRANSFERS_ALIAS).getId() }, // an arbitrary record category - { createRootCategory(RECORD_CATEGORY_NAME).getId() }, + { createRootCategory(RECORD_CATEGORY_NAME + getRandomAlphanumeric()).getId() }, // an arbitrary unfiled records folder {createCategoryFolderInFilePlan().getId()}, {createUnfiledContainerChild(UNFILED_RECORDS_CONTAINER_ALIAS, "Unfiled Record " + getRandomAlphanumeric(), CONTENT_TYPE).getId() }