From 7b4f3951dee9d5c5d004855e30af3fd2cf62aa2b Mon Sep 17 00:00:00 2001 From: Adam Bollen Date: Tue, 17 Dec 2024 14:01:55 -0800 Subject: [PATCH] Ensure we're seeing the new doc --- src/test/java/com/fauna/e2e/E2EFeedsTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/fauna/e2e/E2EFeedsTest.java b/src/test/java/com/fauna/e2e/E2EFeedsTest.java index d4b6a3db..06c618bd 100644 --- a/src/test/java/com/fauna/e2e/E2EFeedsTest.java +++ b/src/test/java/com/fauna/e2e/E2EFeedsTest.java @@ -12,6 +12,7 @@ import com.fauna.exception.InvalidRequestException; import com.fauna.response.QueryFailure; import com.fauna.response.QuerySuccess; + import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -104,7 +105,7 @@ public void manualFeed() { assertEquals(50, productUpdates.size()); assertEquals(25, pageCount); - client.query(fql("Product.create({name:\"newProduct\",quantity:1})"), + client.query(fql("Product.create({name:\"newProduct\",quantity:123})"), Product.class); FeedOptions newOptions = @@ -114,7 +115,11 @@ public void manualFeed() { FeedPage newPageFuture = client.poll(source, newOptions, Product.class).join(); - assertEquals(1, newPageFuture.getEvents().size()); + List> newEvents = newPageFuture.getEvents(); + + assertEquals(1, newEvents.size()); + assertEquals("newProduct", newEvents.get(0).getData().get().getName()); + assertEquals(123, newEvents.get(0).getData().get().getQuantity()); } @Test