Skip to content

Commit 49e71a1

Browse files
committed
Minor update
1 parent b41a635 commit 49e71a1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/it/java/io/weaviate/integration/SearchITest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,11 @@ public void testGenerative_bm25() throws IOException {
607607
.as("individual results")
608608
.hasSize(2)
609609
.allSatisfy(obj -> {
610-
Assertions.assertThat(obj.uuid()).as("uuid shorthand").isNotBlank()
611-
.isEqualTo(obj.metadata().uuid());
612-
Assertions.assertThat(obj.vectors()).as("vectors shorthand").isNotNull()
613-
.isEqualTo(obj.metadata().vectors());
610+
Assertions.assertThat(obj).as("uuid shorthand")
611+
.returns(obj.uuid(), GenerativeObject::uuid);
612+
Assertions.assertThat(obj).as("vectors shorthand")
613+
.returns(obj.vectors(), GenerativeObject::vectors);
614614
})
615-
// **END SHORTHAND TESTS**
616615
.extracting(GenerativeObject::generative)
617616
.allSatisfy(generated -> {
618617
Assertions.assertThat(generated.text()).isNotBlank();

0 commit comments

Comments
 (0)