From ca121231f13cbe841196bcef909759d7e05deaba Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 30 Oct 2024 21:24:13 +0100 Subject: [PATCH] test: remove defaults from expected values --- .../weaviate/client/v1/schema/model/WeaviateClassTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/io/weaviate/client/v1/schema/model/WeaviateClassTest.java b/src/test/java/io/weaviate/client/v1/schema/model/WeaviateClassTest.java index e2155e23..5ea55a56 100644 --- a/src/test/java/io/weaviate/client/v1/schema/model/WeaviateClassTest.java +++ b/src/test/java/io/weaviate/client/v1/schema/model/WeaviateClassTest.java @@ -70,7 +70,7 @@ public void shouldSerializeClassWithFlatIndexType() { assertThat(result).isEqualTo("{\"class\":\"Band\",\"description\":\"Band that plays and produces music\"," + "\"moduleConfig\":{\"text2vec-contextionary\":{\"vectorizeClassName\":false}}," + - "\"vectorIndexConfig\":{\"filterStrategy\":\"sweeping\",\"bq\":{\"enabled\":true,\"rescoreLimit\":100}},\"vectorIndexType\":\"flat\"," + + "\"vectorIndexConfig\":{\"bq\":{\"enabled\":true,\"rescoreLimit\":100}},\"vectorIndexType\":\"flat\"," + "\"vectorizer\":\"text2vec-contextionary\"}"); } @@ -108,14 +108,14 @@ public void shouldSerializeClassWithVectorConfig() { "\"moduleConfig\":{\"text2vec-contextionary\":{\"vectorizeClassName\":false}}," + "\"vectorConfig\":{" + "\"hnswVector\":{\"vectorIndexType\":\"hnsw\",\"vectorizer\":{\"text2vec-contextionary\":\"some-setting\"}}," + - "\"flatVector\":{\"vectorIndexConfig\":{\"filterStrategy\":\"sweeping\",\"bq\":{\"enabled\":true,\"rescoreLimit\":100}},\"vectorIndexType\":\"flat\"," + + "\"flatVector\":{\"vectorIndexConfig\":{\"bq\":{\"enabled\":true,\"rescoreLimit\":100}},\"vectorIndexType\":\"flat\"," + "\"vectorizer\":{\"text2vec-contextionary\":\"some-setting\"}}" + "}}"), serialized -> assertThat(serialized).isEqualTo("{\"class\":\"Band\"," + "\"description\":\"Band that plays and produces music\"," + "\"moduleConfig\":{\"text2vec-contextionary\":{\"vectorizeClassName\":false}}," + "\"vectorConfig\":{" + - "\"flatVector\":{\"vectorIndexConfig\":{\"filterStrategy\":\"sweeping\",\"bq\":{\"enabled\":true,\"rescoreLimit\":100}},\"vectorIndexType\":\"flat\"," + + "\"flatVector\":{\"vectorIndexConfig\":{\"bq\":{\"enabled\":true,\"rescoreLimit\":100}},\"vectorIndexType\":\"flat\"," + "\"vectorizer\":{\"text2vec-contextionary\":\"some-setting\"}}" + "\"hnswVector\":{\"vectorIndexType\":\"hnsw\",\"vectorizer\":{\"text2vec-contextionary\":\"some-setting\"}}," + "}}")