Skip to content

Commit

Permalink
test: remove defaults from expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
bevzzz committed Oct 30, 2024
1 parent 328beaa commit ca12123
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\"}");
}

Expand Down Expand Up @@ -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\"}}," +
"}}")
Expand Down

0 comments on commit ca12123

Please sign in to comment.