Commit ffd499fd authored by Phillip Webb's avatar Phillip Webb

Attempt to fix failing Windows test

parent d3c06ee0
...@@ -28,8 +28,6 @@ import org.junit.jupiter.api.AfterEach; ...@@ -28,8 +28,6 @@ import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.util.StringUtils;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException; import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
...@@ -81,9 +79,9 @@ class PrivateKeyParserTests { ...@@ -81,9 +79,9 @@ class PrivateKeyParserTests {
@Test @Test
void parseWithInvalidPathWillThrowException() throws URISyntaxException { void parseWithInvalidPathWillThrowException() throws URISyntaxException {
URI privateKeyPath = new URI("file:///bad/path/key.pem"); Path path = Paths.get(new URI("file:///bad/path/key.pem"));
assertThatIllegalStateException().isThrownBy(() -> PrivateKeyParser.parse(Paths.get(privateKeyPath))) assertThatIllegalStateException().isThrownBy(() -> PrivateKeyParser.parse(path))
.withMessageContaining(StringUtils.cleanPath(privateKeyPath.getPath())); .withMessageContaining(path.toString());
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment