From a6327aab8ed498b8ff5f296f8696526acece6aeb Mon Sep 17 00:00:00 2001 From: Jorge Bescos Gascon Date: Thu, 21 Dec 2023 11:03:21 +0100 Subject: [PATCH] [3.x] Helidon Arquillian module should only depend on MP core #7614 Signed-off-by: Jorge Bescos Gascon --- microprofile/tests/arquillian/pom.xml | 12 +++++------- .../arquillian/HelidonDeployableContainer.java | 5 +++-- microprofile/tests/tck/tck-fault-tolerance/pom.xml | 9 +++++++-- microprofile/tests/tck/tck-health/pom.xml | 4 ++++ microprofile/tests/tck/tck-jwt-auth/pom.xml | 4 ---- microprofile/tests/tck/tck-openapi/pom.xml | 5 +++++ .../tests/tck/tck-reactive-operators/pom.xml | 6 ------ 7 files changed, 24 insertions(+), 21 deletions(-) diff --git a/microprofile/tests/arquillian/pom.xml b/microprofile/tests/arquillian/pom.xml index 6b0b8f93b34..aba7259ed10 100644 --- a/microprofile/tests/arquillian/pom.xml +++ b/microprofile/tests/arquillian/pom.xml @@ -53,13 +53,11 @@ io.helidon.microprofile.bundles - helidon-microprofile - - - io.helidon.health - helidon-health-checks - - + helidon-microprofile-core + + + io.helidon.microprofile.metrics + helidon-microprofile-metrics junit diff --git a/microprofile/tests/arquillian/src/main/java/io/helidon/microprofile/arquillian/HelidonDeployableContainer.java b/microprofile/tests/arquillian/src/main/java/io/helidon/microprofile/arquillian/HelidonDeployableContainer.java index d426eba6754..bb8a2aa0e93 100644 --- a/microprofile/tests/arquillian/src/main/java/io/helidon/microprofile/arquillian/HelidonDeployableContainer.java +++ b/microprofile/tests/arquillian/src/main/java/io/helidon/microprofile/arquillian/HelidonDeployableContainer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2022 Oracle and/or its affiliates. + * Copyright (c) 2018, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,7 @@ import io.helidon.config.mp.MpConfigSources; +import jakarta.enterprise.inject.ResolutionException; import jakarta.enterprise.inject.se.SeContainer; import jakarta.enterprise.inject.spi.CDI; import jakarta.enterprise.inject.spi.DefinitionException; @@ -474,7 +475,7 @@ private void cleanupBaseMetrics() { new BaseRegistryTypeLiteral()).get(); Objects.requireNonNull(metricRegistry); metricRegistry.removeMatching((m, v) -> true); - } catch (IllegalStateException e) { + } catch (IllegalStateException | ResolutionException e) { LOGGER.log(Level.WARNING, "Unable to cleanup base metrics", e); } } diff --git a/microprofile/tests/tck/tck-fault-tolerance/pom.xml b/microprofile/tests/tck/tck-fault-tolerance/pom.xml index 864e5d11661..1c823c422c3 100644 --- a/microprofile/tests/tck/tck-fault-tolerance/pom.xml +++ b/microprofile/tests/tck/tck-fault-tolerance/pom.xml @@ -42,8 +42,13 @@ test - io.helidon.microprofile.bundles - helidon-microprofile + io.helidon.microprofile.metrics + helidon-microprofile-metrics + test + + + io.helidon.microprofile + helidon-microprofile-fault-tolerance test diff --git a/microprofile/tests/tck/tck-health/pom.xml b/microprofile/tests/tck/tck-health/pom.xml index f65fc5b1d5f..7099f1dae5d 100644 --- a/microprofile/tests/tck/tck-health/pom.xml +++ b/microprofile/tests/tck/tck-health/pom.xml @@ -47,6 +47,10 @@ parsson test + + io.helidon.microprofile.health + helidon-microprofile-health + org.eclipse.microprofile.health microprofile-health-tck diff --git a/microprofile/tests/tck/tck-jwt-auth/pom.xml b/microprofile/tests/tck/tck-jwt-auth/pom.xml index 92b9276a13f..0434e46b6b6 100644 --- a/microprofile/tests/tck/tck-jwt-auth/pom.xml +++ b/microprofile/tests/tck/tck-jwt-auth/pom.xml @@ -38,10 +38,6 @@ test-jar test - - io.helidon.microprofile.bundles - helidon-microprofile-core - io.helidon.microprofile.jwt helidon-microprofile-jwt-auth diff --git a/microprofile/tests/tck/tck-openapi/pom.xml b/microprofile/tests/tck/tck-openapi/pom.xml index c6e76f5d5a0..29dd704c321 100644 --- a/microprofile/tests/tck/tck-openapi/pom.xml +++ b/microprofile/tests/tck/tck-openapi/pom.xml @@ -63,6 +63,11 @@ arquillian-testng-container test + + io.helidon.microprofile.openapi + helidon-microprofile-openapi + test + org.eclipse.microprofile.openapi microprofile-openapi-api diff --git a/microprofile/tests/tck/tck-reactive-operators/pom.xml b/microprofile/tests/tck/tck-reactive-operators/pom.xml index bd6d88d3c85..0d88819139b 100644 --- a/microprofile/tests/tck/tck-reactive-operators/pom.xml +++ b/microprofile/tests/tck/tck-reactive-operators/pom.xml @@ -34,12 +34,6 @@ helidon-arquillian ${project.version} test - - - io.helidon.microprofile.bundles - helidon-microprofile-3.1 - - io.helidon.microprofile.reactive-streams