From d69c5efdc9de96be1b61215f5bf33fa609958982 Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 27 Aug 2025 17:21:50 +0200 Subject: [PATCH 1/6] chore: upgrade dependencies --- pom.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 00b8a80c5..a9566eec7 100644 --- a/pom.xml +++ b/pom.xml @@ -58,20 +58,20 @@ 3.18.0 5.13.4 1.21.3 - 3.27.3 + 3.27.4 1.0.4 - 5.18.0 + 5.19.0 2.0.17 1.5.18 5.14.0 2.19.2 - 11.26.1 + 11.27.1 5.15.0 - 4.31.1 - 4.31.1 - 1.73.0 - 1.73.0 - 1.73.0 + 4.32.0 + 4.32.0 + 1.74.0 + 1.74.0 + 1.74.0 6.0.53 From 7eab73fefdbcc4f82dfda9eee09b3fe482ff2ccd Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 27 Aug 2025 17:24:49 +0200 Subject: [PATCH 2/6] chore: use nop-logger for tests --- pom.xml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index a9566eec7..3d5f6f611 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ 3.27.4 1.0.4 5.19.0 - 2.0.17 + 1.7.36 1.5.18 5.14.0 2.19.2 @@ -169,16 +169,10 @@ test - org.slf4j - slf4j-api - ${slf4j.version} - test - - - ch.qos.logback - logback-classic - ${logback.version} - test + org.slf4j + slf4j-nop + ${slf4j.version} + test org.mock-server From 89557abb7576a8c3ff681fde84da792cb4d4f13a Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 27 Aug 2025 17:26:01 +0200 Subject: [PATCH 3/6] chore: use shaded version of mockserver --- pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3d5f6f611..6fb333deb 100644 --- a/pom.xml +++ b/pom.xml @@ -176,8 +176,7 @@ org.mock-server - - mockserver-netty + mockserver-netty-no-dependencies ${mock-server.version} test From 01a30aae466f127dd3d38394429aba31eb2f83de Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 27 Aug 2025 17:34:46 +0200 Subject: [PATCH 4/6] chore: remove jupiter test dependency --- pom.xml | 6 ------ .../v1/internal/grpc/ByteStringUtilTest.java | 21 ++++++++----------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index 6fb333deb..1cba8e89f 100644 --- a/pom.xml +++ b/pom.xml @@ -132,12 +132,6 @@ oauth2-oidc-sdk ${oauth2-oidc-sdk.version} - - org.junit.jupiter - junit-jupiter-api - ${junit.version} - test - org.testcontainers weaviate diff --git a/src/test/java/io/weaviate/client6/v1/internal/grpc/ByteStringUtilTest.java b/src/test/java/io/weaviate/client6/v1/internal/grpc/ByteStringUtilTest.java index 382dd9212..147549b2c 100644 --- a/src/test/java/io/weaviate/client6/v1/internal/grpc/ByteStringUtilTest.java +++ b/src/test/java/io/weaviate/client6/v1/internal/grpc/ByteStringUtilTest.java @@ -1,8 +1,5 @@ package io.weaviate.client6.v1.internal.grpc; -import static org.junit.Assert.assertArrayEquals; -import static org.junit.jupiter.api.Assertions.assertEquals; - import org.assertj.core.api.Assertions; import org.junit.Test; @@ -21,7 +18,7 @@ public void test_encodeVector_1d() { float[] vector = { 1f, 2f, 3f }; byte[] want = { 0, 0, -128, 63, 0, 0, 0, 64, 0, 0, 64, 64 }; byte[] got = ByteStringUtil.encodeVectorSingle(vector).toByteArray(); - assertArrayEquals(want, got); + Assertions.assertThat(got).isEqualTo(want); } @Test @@ -29,7 +26,7 @@ public void test_decodeVector_1d() { byte[] bytes = { 0, 0, -128, 63, 0, 0, 0, 64, 0, 0, 64, 64 }; float[] want = { 1f, 2f, 3f }; float[] got = ByteStringUtil.decodeVectorSingle(ByteString.copyFrom(bytes)); - assertArrayEquals(want, got, 0); + Assertions.assertThat(got).isEqualTo(want); } @Test @@ -37,7 +34,7 @@ public void test_encodeVector_2d() { float[][] vector = { { 1f, 2f, 3f }, { 4f, 5f, 6f } }; byte[] want = { 3, 0, 0, 0, -128, 63, 0, 0, 0, 64, 0, 0, 64, 64, 0, 0, -128, 64, 0, 0, -96, 64, 0, 0, -64, 64 }; byte[] got = ByteStringUtil.encodeVectorMulti(vector).toByteArray(); - assertArrayEquals(want, got); + Assertions.assertThat(got).isEqualTo(want); } @Test @@ -45,7 +42,7 @@ public void test_decodeVector_2d() { byte[] bytes = { 3, 0, 0, 0, -128, 63, 0, 0, 0, 64, 0, 0, 64, 64, 0, 0, -128, 64, 0, 0, -96, 64, 0, 0, -64, 64 }; float[][] want = { { 1f, 2f, 3f }, { 4f, 5f, 6f } }; float[][] got = ByteStringUtil.decodeVectorMulti(ByteString.copyFrom(bytes)); - assertArrayEquals(want, got); + Assertions.assertThat(got).isEqualTo(want); } @Test @@ -53,28 +50,28 @@ public void test_decodeUuid() { byte[] bytes = { 38, 19, -74, 24, -114, -19, 73, 43, -112, -60, 47, 96, 83, -89, -35, -23 }; String want = "2613b618-8eed-492b-90c4-2f6053a7dde9"; String got = ByteStringUtil.decodeUuid(ByteString.copyFrom(bytes)).toString(); - assertEquals(want, got); + Assertions.assertThat(got).isEqualTo(want); } @Test public void test_decodeVector_1d_empty() { byte[] bytes = new byte[0]; float[] got = ByteStringUtil.decodeVectorSingle(ByteString.copyFrom(bytes)); - assertEquals(0, got.length); + Assertions.assertThat(got).isEmpty(); } @Test public void test_decodeVector_2d_empty() { byte[] bytes = new byte[0]; float[][] got = ByteStringUtil.decodeVectorMulti(ByteString.copyFrom(bytes)); - assertEquals(0, got.length); + Assertions.assertThat(got).isEmpty(); } @Test public void test_decodeVector_2d_dim_zero() { byte[] bytes = { 0, 0 }; float[][] got = ByteStringUtil.decodeVectorMulti(ByteString.copyFrom(bytes)); - assertEquals(0, got.length); + Assertions.assertThat(got).isEmpty(); } @Test @@ -82,7 +79,7 @@ public void test_decodeIntValues() { byte[] bytes = { 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0 }; long[] want = { 1, 2, 3 }; long[] got = ByteStringUtil.decodeIntValues(ByteString.copyFrom(bytes)); - assertArrayEquals(want, got); + Assertions.assertThat(got).isEqualTo(want); } @Test From 89c7ca56ec5522a60732022ce8207f943b69b454 Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 27 Aug 2025 18:21:55 +0200 Subject: [PATCH 5/6] chore: upgrade gRPC dependencies to 1.75.0 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 1cba8e89f..8340230c2 100644 --- a/pom.xml +++ b/pom.xml @@ -69,9 +69,9 @@ 5.15.0 4.32.0 4.32.0 - 1.74.0 - 1.74.0 - 1.74.0 + 1.75.0 + 1.75.0 + 1.75.0 6.0.53 From d93beb75d9acc744fba26a3960767a370b9e416b Mon Sep 17 00:00:00 2001 From: dyma solovei Date: Wed, 27 Aug 2025 18:22:27 +0200 Subject: [PATCH 6/6] chore: upgrade slf4j dependency --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8340230c2..32a819d49 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ 3.27.4 1.0.4 5.19.0 - 1.7.36 + 2.0.17 1.5.18 5.14.0 2.19.2