From 03298bff6392b3822e57732849a447cf121630db Mon Sep 17 00:00:00 2001 From: Rodica Sutu Date: Fri, 28 Apr 2017 15:43:16 +0300 Subject: [PATCH] - add some extra checks to catch existing issues --- .../unfiledrecordfolders/UnfiledRecordsFolderTests.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 3a4ba9168f..cfca221474 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 @@ -452,7 +452,7 @@ public class UnfiledRecordsFolderTests extends BaseRMRestTest } // List children from API - UnfiledContainerChildCollection apiChildren = (UnfiledContainerChildCollection) unfiledRecordFoldersAPI.getUnfiledRecordFolderChildren(containerId).assertThat().entriesListIsNotEmpty(); + UnfiledContainerChildCollection apiChildren = (UnfiledContainerChildCollection) unfiledRecordFoldersAPI.getUnfiledRecordFolderChildren(containerId,"include=properties").assertThat().entriesListIsNotEmpty(); // Check status code assertStatusCode(OK); @@ -484,7 +484,11 @@ public class UnfiledRecordsFolderTests extends BaseRMRestTest assertFalse(record.getIsUnfiledRecordFolder()); //check the record name - assertTrue(record.getName().contains(createdComponent.getName())); + assertTrue(record.getName().equals(createdComponent.getName()), + "The record name "+ record.getName()+" is not equal with the record name returned when creating the record " + createdComponent + .getName()); + + assertTrue(record.getName().equals(record.getProperties().getIdentifier())); assertTrue(createdComponent.getName().contains(createdComponent.getProperties().getIdentifier())); assertEquals(createdComponent.getNodeType(), record.getNodeType());