From 3bb31ab36edabe26265681e6df2d01c456c737ca Mon Sep 17 00:00:00 2001 From: Ozan Gunalp Date: Mon, 5 Feb 2024 10:34:52 +0100 Subject: [PATCH] Ensure future compatibility with Quarkus 3.7 contd. Clear quarkus config factory that is on the classpath --- .../java/com/solace/quarkus/messaging/base/WeldTestBase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java b/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java index 69ae66f..78f7b8f 100644 --- a/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java +++ b/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java @@ -12,6 +12,7 @@ import com.solace.quarkus.messaging.SolaceConnector; import com.solace.quarkus.messaging.converters.SolaceMessageConverter; +import io.quarkus.runtime.configuration.QuarkusConfigFactory; import io.smallrye.config.SmallRyeConfigProviderResolver; import io.smallrye.config.inject.ConfigExtension; import io.smallrye.reactive.messaging.providers.MediatorFactory; @@ -79,6 +80,8 @@ public void stopContainer() { } // Release the config objects SmallRyeConfigProviderResolver.instance().releaseConfig(ConfigProvider.getConfig()); + QuarkusConfigFactory.setConfig(null); + MapBasedConfig.cleanup(); } public BeanManager getBeanManager() {