diff --git a/it.tests/src/main/java/com/adobe/aem/guides/wknd/it/tests/GraphQlIT.java b/it.tests/src/main/java/com/adobe/aem/guides/wknd/it/tests/GraphQlIT.java index ffeac6daa4..06b7589f16 100644 --- a/it.tests/src/main/java/com/adobe/aem/guides/wknd/it/tests/GraphQlIT.java +++ b/it.tests/src/main/java/com/adobe/aem/guides/wknd/it/tests/GraphQlIT.java @@ -21,6 +21,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; import java.net.URISyntaxException; import java.util.HashMap; @@ -102,7 +103,7 @@ public void testQuery() { assertNotNull(articleList); JsonNode articleListItems = articleList.get("items"); assertNotNull(articleListItems); - assertEquals(7, articleListItems.size()); + assertTrue(articleListItems.size() > 0); assertNotNull(articleListItems.get(0).get("_path")); assertNotNull(articleListItems.get(0).get("authorFragment")); } @@ -169,7 +170,7 @@ public void testQueryWithParameters() { assertNotNull(articleList); JsonNode articleListItems = articleList.get("items"); assertNotNull(articleListItems); - assertEquals(1, articleListItems.size()); + assertTrue(articleListItems.size() > 0); assertEquals(TEST_AUTHOR_FIRST_NAME, articleListItems.get(0).get("authorFragment").get("firstName").asText()); assertEquals(TEST_AUTHOR_LAST_NAME, articleListItems.get(0).get("authorFragment").get("lastName").asText()); } @@ -185,7 +186,7 @@ public void testPersistedQuery() { assertNotNull(adventureListList); JsonNode adventureListItems = adventureListList.get("items"); assertNotNull(adventureListItems); - assertEquals(16, adventureListItems.size()); + assertTrue(adventureListItems.size() > 0); JsonNode firstAdventureItem = adventureListItems.get(0); assertNotNull(firstAdventureItem.get("_path")); assertNotNull(firstAdventureItem.get("title"));