From 198516da9886cc86a0f4dc9829c20cb6b5bf1260 Mon Sep 17 00:00:00 2001 From: Hakky54 Date: Mon, 8 Apr 2024 13:48:32 +0200 Subject: [PATCH] Cleared state of SSLFactory Provider in tests --- .../test/java/nl/altindag/ssl/util/ProviderUtilsShould.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sslcontext-kickstart/src/test/java/nl/altindag/ssl/util/ProviderUtilsShould.java b/sslcontext-kickstart/src/test/java/nl/altindag/ssl/util/ProviderUtilsShould.java index 2d606a2e..b7dc18af 100644 --- a/sslcontext-kickstart/src/test/java/nl/altindag/ssl/util/ProviderUtilsShould.java +++ b/sslcontext-kickstart/src/test/java/nl/altindag/ssl/util/ProviderUtilsShould.java @@ -18,6 +18,7 @@ import nl.altindag.ssl.SSLFactory; import nl.altindag.ssl.provider.FenixProvider; import nl.altindag.ssl.provider.SSLFactoryProvider; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import java.security.Provider; @@ -30,6 +31,11 @@ */ class ProviderUtilsShould { + @AfterEach + void clearSSLFactoryProvider() { + SSLFactoryProvider.set(null); + } + @Test void createProviderWithDefaultConfiguration() { SSLFactory sslFactory = SSLFactory.builder()