- add some extra checks to catch existing issues

This commit is contained in:
Rodica Sutu
2017-04-28 15:43:16 +03:00
parent d4666d5b82
commit 03298bff63

View File

@@ -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());