Refactored to use objects that represent the search response

This commit is contained in:
Michael Suzuki
2017-02-23 10:56:45 +00:00
parent ccab6f6593
commit 691d27869f
2 changed files with 2 additions and 2 deletions
@@ -61,7 +61,7 @@ public class AbstractSearchTest extends RestTest
FolderModel folder = new FolderModel(SEARCH_DATA_SAMPLE_FOLDER);
dataContent.usingSite(siteModel).createFolder(folder);
//Create files
FileModel file = new FileModel("pangram.txt", FileType.TEXT_PLAIN, "The qucik brown fox jumps over the lazy dog");
FileModel file = new FileModel("pangram.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy dog");
FileModel file2 = new FileModel("cars.txt", FileType.TEXT_PLAIN, "The landrover discovery is not a sports car");
ContentModel cm = new ContentModel();
cm.setCmisLocation(folder.getCmisLocation());
@@ -32,7 +32,7 @@ public class SearchTest extends AbstractSearchTest
@Test(groups={TestGroup.SEARCH, TestGroup.REST_API})
public void searchCreatedData() throws Exception
{
SearchResponse nodes = query("ipsum");
SearchResponse nodes = query("car");
restClient.assertStatusCodeIs(HttpStatus.OK);
nodes.assertThat().entriesListIsNotEmpty();