From 077b4ad3a56dc29722ac6f55e94a1e1a990f7458 Mon Sep 17 00:00:00 2001 From: Jorden_Reuter Date: Thu, 18 Apr 2024 15:46:35 +0200 Subject: [PATCH] feat: updated parent pom and fixed tests --- .../onecx-product-store-bff-extensions.adoc | 34 +++++++++---------- pom.xml | 2 +- .../rs/MicrofrontendsRestControllerTest.java | 2 +- .../rs/MicroservicesRestControllerTest.java | 2 +- .../bff/rs/ProductsRestControllerTest.java | 4 +-- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/modules/onecx-product-store-bff/pages/onecx-product-store-bff-extensions.adoc b/docs/modules/onecx-product-store-bff/pages/onecx-product-store-bff-extensions.adoc index d47d76a..143834a 100644 --- a/docs/modules/onecx-product-store-bff/pages/onecx-product-store-bff-extensions.adoc +++ b/docs/modules/onecx-product-store-bff/pages/onecx-product-store-bff-extensions.adoc @@ -59,38 +59,38 @@ h| Version | tkit-quarkus-log-cdi | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-cdi.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link] +| 2.22.0 | tkit-quarkus-log-rs | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-rs.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link] +| 2.22.0 | tkit-quarkus-log-json | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-json.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link] +| 2.22.0 | tkit-quarkus-rest | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-rest.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest.adoc[Link] +| 2.22.0 | tkit-quarkus-rest-context | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-rest-context.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest-context.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest-context.adoc[Link] +| 2.22.0 | tkit-quarkus-jpa | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-jpa.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-jpa.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-jpa.adoc[Link] +| 2.22.0 | quarkus-hibernate-validator @@ -101,8 +101,8 @@ h| Version | onecx-permissions | https://onecx.github.io/docs/onecx-quarkus/current/onecx-quarkus/onecx-permissions.html[Link] -| https://github.com/onecx/onecx-quarkus/blob/0.16.0/docs/modules/onecx-quarkus/pages/includes/onecx-permissions.adoc[Link] -| 0.16.0 +| https://github.com/onecx/onecx-quarkus/blob/0.17.0/docs/modules/onecx-quarkus/pages/includes/onecx-permissions.adoc[Link] +| 0.17.0 | quarkus-oidc @@ -113,14 +113,14 @@ h| Version | tkit-quarkus-security | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-security.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-security.adoc[Link] -| 2.21.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-security.adoc[Link] +| 2.22.0 | onecx-core | https://onecx.github.io/docs/onecx-quarkus/current/onecx-quarkus/onecx-core.html[Link] | -| 0.16.0 +| 0.17.0 | quarkus-arc diff --git a/pom.xml b/pom.xml index 3473b93..67db206 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.tkit.onecx onecx-quarkus3-parent - 0.46.0 + 0.47.0 onecx-product-store-bff diff --git a/src/test/java/org/tkit/onecx/product/store/bff/rs/MicrofrontendsRestControllerTest.java b/src/test/java/org/tkit/onecx/product/store/bff/rs/MicrofrontendsRestControllerTest.java index a728a4d..f8e5d8b 100644 --- a/src/test/java/org/tkit/onecx/product/store/bff/rs/MicrofrontendsRestControllerTest.java +++ b/src/test/java/org/tkit/onecx/product/store/bff/rs/MicrofrontendsRestControllerTest.java @@ -399,7 +399,7 @@ void createMicrofrontend_shouldReturnBadRequest_whenRunningIntoValidationConstra Assertions.assertNotNull(response.getDetail()); Assertions.assertEquals(param1.getMessage(), invalidParamConstraint.get().getMessage()); Assertions.assertNotNull(invalidParamConstraint.get().getName()); - Assertions.assertNull(response.getParams()); + Assertions.assertTrue(response.getParams().isEmpty()); } diff --git a/src/test/java/org/tkit/onecx/product/store/bff/rs/MicroservicesRestControllerTest.java b/src/test/java/org/tkit/onecx/product/store/bff/rs/MicroservicesRestControllerTest.java index 1025228..9deb3c3 100644 --- a/src/test/java/org/tkit/onecx/product/store/bff/rs/MicroservicesRestControllerTest.java +++ b/src/test/java/org/tkit/onecx/product/store/bff/rs/MicroservicesRestControllerTest.java @@ -399,7 +399,7 @@ void createMicroservice_shouldReturnBadRequest_whenRunningIntoValidationConstrai Assertions.assertNotNull(response.getDetail()); Assertions.assertEquals(param1.getMessage(), invalidParamConstraint.get().getMessage()); Assertions.assertNotNull(invalidParamConstraint.get().getName()); - Assertions.assertNull(response.getParams()); + Assertions.assertTrue(response.getParams().isEmpty()); } diff --git a/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java b/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java index 36d6ed5..ef70e5d 100644 --- a/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java +++ b/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java @@ -209,7 +209,7 @@ void getProductByName_test() { .extract().as(ProductAndWorkspacesDTO.class); Assertions.assertNotNull(responseWithoutWorkspaces); Assertions.assertEquals(data2.getId(), responseWithoutWorkspaces.getId()); - Assertions.assertNull(responseWithoutWorkspaces.getWorkspaces()); + Assertions.assertTrue(responseWithoutWorkspaces.getWorkspaces().isEmpty()); } /** @@ -494,7 +494,7 @@ void createProduct_shouldReturnBadRequest_whenRunningIntoValidationConstraints() Assertions.assertNotNull(response.getDetail()); Assertions.assertEquals(param1.getMessage(), invalidParamConstraint.get().getMessage()); Assertions.assertNotNull(invalidParamConstraint.get().getName()); - Assertions.assertNull(response.getParams()); + Assertions.assertTrue(response.getParams().isEmpty()); }