diff --git a/pom.xml b/pom.xml index 00b8a80c5..32a819d49 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.75.0 + 1.75.0 + 1.75.0 6.0.53 @@ -132,12 +132,6 @@ oauth2-oidc-sdk ${oauth2-oidc-sdk.version} - - org.junit.jupiter - junit-jupiter-api - ${junit.version} - test - org.testcontainers weaviate @@ -169,21 +163,14 @@ 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 - - mockserver-netty + mockserver-netty-no-dependencies ${mock-server.version} test 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