From 45edd29f466cfe8360d0a26a9ebba734ad88a202 Mon Sep 17 00:00:00 2001 From: cnechifor Date: Thu, 29 Sep 2016 11:29:46 +0300 Subject: [PATCH] moved assertResponseIsNotEmpty and removed the duplication --- e2e-test/java/org/alfresco/rest/demo/RestDemoTest.java | 4 ++-- e2e-test/java/org/alfresco/rest/demo/SampleSitesTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/demo/RestDemoTest.java b/e2e-test/java/org/alfresco/rest/demo/RestDemoTest.java index 6a3fea0e6..bd6a29a16 100644 --- a/e2e-test/java/org/alfresco/rest/demo/RestDemoTest.java +++ b/e2e-test/java/org/alfresco/rest/demo/RestDemoTest.java @@ -77,7 +77,7 @@ public class RestDemoTest extends RestTest // add new comment RestCommentModel commentEntry = commentsAPI.addComment(fileModel.getNodeRef(), "This is a new comment"); commentsAPI.getNodeComments(fileModel.getNodeRef()) - .assertThatResponseIsNotEmpty() + .assertResponseIsNotEmpty() .assertThatCommentWithIdExists(commentEntry.getId()) .assertThatCommentWithContentExists("This is a new comment"); @@ -86,7 +86,7 @@ public class RestDemoTest extends RestTest commentEntry.getId(), "This is the updated comment"); commentsAPI.getNodeComments(fileModel.getNodeRef()) - .assertThatResponseIsNotEmpty() + .assertResponseIsNotEmpty() .assertThatCommentWithIdExists(commentEntry.getId()) .assertThatCommentWithContentExists("This is the updated comment"); } diff --git a/e2e-test/java/org/alfresco/rest/demo/SampleSitesTest.java b/e2e-test/java/org/alfresco/rest/demo/SampleSitesTest.java index 53bcfad31..8a830ddda 100644 --- a/e2e-test/java/org/alfresco/rest/demo/SampleSitesTest.java +++ b/e2e-test/java/org/alfresco/rest/demo/SampleSitesTest.java @@ -63,7 +63,7 @@ public class SampleSitesTest extends RestTest public void adminShouldAccessSites() throws JsonToModelConversionException, Exception { siteAPI.getSites() - .assertThatResponseIsNotEmpty(); + .assertResponseIsNotEmpty(); } @TestRail(section={"rest-api", "sites"}, executionType= ExecutionType.SANITY,