From 8e235a01d9977d4795b1a5a2c8a1af31e1c98052 Mon Sep 17 00:00:00 2001 From: denis256 Date: Thu, 19 Jan 2023 15:08:20 +0200 Subject: [PATCH] Updated mongodb tests --- .../java/com/unidev/polydata4/mongodb/PolydataMongodbTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polydata-mongodb/src/test/java/com/unidev/polydata4/mongodb/PolydataMongodbTests.java b/polydata-mongodb/src/test/java/com/unidev/polydata4/mongodb/PolydataMongodbTests.java index 3d032e6..5eaa55e 100644 --- a/polydata-mongodb/src/test/java/com/unidev/polydata4/mongodb/PolydataMongodbTests.java +++ b/polydata-mongodb/src/test/java/com/unidev/polydata4/mongodb/PolydataMongodbTests.java @@ -149,7 +149,7 @@ void removal() { polydata.remove(polyId, Set.of("test")); assertThat(polydata.read(polyId, Set.of("test")).hasPoly("test")).isFalse(); - assertThat(polydata.index(polyId).get().fetch("tag1", BasicPoly.class).fetch("count", Integer.class)).isEqualTo(0); + assertThat(polydata.index(polyId).get().containsKey("tag1")).isFalse(); assertThat(polydata.index(polyId).get().fetch("date", BasicPoly.class).fetch("count", Integer.class)).isEqualTo(1); }