Skip to content

Commit

Permalink
Cleared state of SSLFactory Provider in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakky54 committed Apr 8, 2024
1 parent 894f210 commit 198516d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -30,6 +31,11 @@
*/
class ProviderUtilsShould {

@AfterEach
void clearSSLFactoryProvider() {
SSLFactoryProvider.set(null);
}

@Test
void createProviderWithDefaultConfiguration() {
SSLFactory sslFactory = SSLFactory.builder()
Expand Down

0 comments on commit 198516d

Please sign in to comment.