Merge branch 'TAS-949' of gitlab.alfresco.com:tas/alfresco-tas-restapi-test

# Conflicts:
#	src/main/java/org/alfresco/rest/model/RestCommentModelsCollection.java
#	src/main/java/org/alfresco/rest/model/RestPersonModel.java
#	src/main/java/org/alfresco/rest/requests/RestCommentsApi.java
#	src/main/java/org/alfresco/rest/requests/RestSitesApi.java
#	src/test/java/org/alfresco/rest/demo/RestDemoTests.java
This commit is contained in:
Paul Brodner
2016-09-29 16:56:54 +03:00
7 changed files with 19 additions and 24 deletions

View File

@@ -78,18 +78,18 @@ public class RestDemoTests extends RestTest
// add new comment
RestCommentModel commentEntry = commentsAPI.addComment(fileModel, "This is a new comment");
commentsAPI.getNodeComments(fileModel)
.assertThatResponseIsNotEmpty()
.assertThatCommentWithIdExists(commentEntry)
.assertThatCommentWithContentExists("This is a new comment");
.assertResponseIsNotEmpty()
.assertCommentWithIdExists(commentEntry);
// update comment
commentEntry = commentsAPI.updateComment(fileModel,
commentEntry,
"This is the updated comment");
commentsAPI.getNodeComments(fileModel)
.assertThatResponseIsNotEmpty()
.assertThatCommentWithIdExists(commentEntry)
.assertThatCommentWithContentExists("This is the updated comment");
.assertResponseIsNotEmpty()
.assertCommentWithIdExists(commentEntry)
.assertCommentWithContentExists("This is the updated comment");
}
/**