mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
moved assertResponseIsNotEmpty and removed the duplication
This commit is contained in:
@@ -77,7 +77,7 @@ public class RestDemoTest extends RestTest
|
|||||||
// add new comment
|
// add new comment
|
||||||
RestCommentModel commentEntry = commentsAPI.addComment(fileModel.getNodeRef(), "This is a new comment");
|
RestCommentModel commentEntry = commentsAPI.addComment(fileModel.getNodeRef(), "This is a new comment");
|
||||||
commentsAPI.getNodeComments(fileModel.getNodeRef())
|
commentsAPI.getNodeComments(fileModel.getNodeRef())
|
||||||
.assertThatResponseIsNotEmpty()
|
.assertResponseIsNotEmpty()
|
||||||
.assertThatCommentWithIdExists(commentEntry.getId())
|
.assertThatCommentWithIdExists(commentEntry.getId())
|
||||||
.assertThatCommentWithContentExists("This is a new comment");
|
.assertThatCommentWithContentExists("This is a new comment");
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ public class RestDemoTest extends RestTest
|
|||||||
commentEntry.getId(),
|
commentEntry.getId(),
|
||||||
"This is the updated comment");
|
"This is the updated comment");
|
||||||
commentsAPI.getNodeComments(fileModel.getNodeRef())
|
commentsAPI.getNodeComments(fileModel.getNodeRef())
|
||||||
.assertThatResponseIsNotEmpty()
|
.assertResponseIsNotEmpty()
|
||||||
.assertThatCommentWithIdExists(commentEntry.getId())
|
.assertThatCommentWithIdExists(commentEntry.getId())
|
||||||
.assertThatCommentWithContentExists("This is the updated comment");
|
.assertThatCommentWithContentExists("This is the updated comment");
|
||||||
}
|
}
|
||||||
|
@@ -63,7 +63,7 @@ public class SampleSitesTest extends RestTest
|
|||||||
public void adminShouldAccessSites() throws JsonToModelConversionException, Exception
|
public void adminShouldAccessSites() throws JsonToModelConversionException, Exception
|
||||||
{
|
{
|
||||||
siteAPI.getSites()
|
siteAPI.getSites()
|
||||||
.assertThatResponseIsNotEmpty();
|
.assertResponseIsNotEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestRail(section={"rest-api", "sites"}, executionType= ExecutionType.SANITY,
|
@TestRail(section={"rest-api", "sites"}, executionType= ExecutionType.SANITY,
|
||||||
|
Reference in New Issue
Block a user