From 181a98a2d6c445359db3778a646cd60d521068ed Mon Sep 17 00:00:00 2001 From: Paul Brodner Date: Tue, 1 Aug 2017 15:05:47 +0300 Subject: [PATCH] added response assertion onResponse on RestWrapper --- .../java/org/alfresco/rest/comments/AddCommentSanityTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e-test/java/org/alfresco/rest/comments/AddCommentSanityTests.java b/e2e-test/java/org/alfresco/rest/comments/AddCommentSanityTests.java index 93606fb20..1b7c44974 100644 --- a/e2e-test/java/org/alfresco/rest/comments/AddCommentSanityTests.java +++ b/e2e-test/java/org/alfresco/rest/comments/AddCommentSanityTests.java @@ -46,6 +46,7 @@ public class AddCommentSanityTests extends RestTest .assertThat().field("content").isNotEmpty() .and().field("content").is(newContent); restClient.assertStatusCodeIs(HttpStatus.CREATED); + restClient.onResponse().assertThat().body("entry.edited", org.hamcrest.Matchers.is(false)); } @TestRail(section = { TestGroup.REST_API, TestGroup.COMMENTS }, executionType = ExecutionType.SANITY, description = "Verify Manager user adds comments with Rest API and status code is 201")