diff --git a/crypto/src/test/java/org/springframework/security/crypto/encrypt/KeyStoreKeyFactoryTests.java b/crypto/src/test/java/org/springframework/security/crypto/encrypt/KeyStoreKeyFactoryTests.java index 216b99f306..79868264db 100644 --- a/crypto/src/test/java/org/springframework/security/crypto/encrypt/KeyStoreKeyFactoryTests.java +++ b/crypto/src/test/java/org/springframework/security/crypto/encrypt/KeyStoreKeyFactoryTests.java @@ -17,6 +17,8 @@ package org.springframework.security.crypto.encrypt; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; import org.springframework.core.io.ClassPathResource; @@ -26,6 +28,7 @@ import static org.assertj.core.api.Assertions.assertThat; * @author Dave Syer * */ +@DisabledOnOs(OS.WINDOWS) public class KeyStoreKeyFactoryTests { @Test diff --git a/crypto/src/test/java/org/springframework/security/crypto/encrypt/RsaKeyHelperTests.java b/crypto/src/test/java/org/springframework/security/crypto/encrypt/RsaKeyHelperTests.java index 2b668d8177..593681fe1e 100644 --- a/crypto/src/test/java/org/springframework/security/crypto/encrypt/RsaKeyHelperTests.java +++ b/crypto/src/test/java/org/springframework/security/crypto/encrypt/RsaKeyHelperTests.java @@ -20,12 +20,15 @@ import java.nio.charset.StandardCharsets; import java.security.KeyPair; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; import org.springframework.core.io.ClassPathResource; import org.springframework.util.StreamUtils; import static org.assertj.core.api.Assertions.assertThat; +@DisabledOnOs(OS.WINDOWS) public class RsaKeyHelperTests { @Test