This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 24d390df8f60ea76247947518d938871e8dd02bc Author: Martin Tzvetanov Grigorov <[email protected]> AuthorDate: Sun Jul 18 23:20:49 2021 +0300 Fix failing test by updating the resource url scheme to HTTPS (cherry picked from commit d4e9fb4fb2ce2c0557fb5abfebeb06f3d93f685c) --- .../src/test/java/org/apache/wicket/util/io/ConnectionsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wicket-util/src/test/java/org/apache/wicket/util/io/ConnectionsTest.java b/wicket-util/src/test/java/org/apache/wicket/util/io/ConnectionsTest.java index 5ea6f25..548b84c 100644 --- a/wicket-util/src/test/java/org/apache/wicket/util/io/ConnectionsTest.java +++ b/wicket-util/src/test/java/org/apache/wicket/util/io/ConnectionsTest.java @@ -28,15 +28,15 @@ import org.junit.jupiter.api.Test; * Tests for {@link Connections} */ @Tag(WicketTestTag.SLOW) -public class ConnectionsTest +class ConnectionsTest { /** * https://issues.apache.org/jira/browse/WICKET-5838 */ @Test - public void getLastModified() throws Exception + void getLastModified() throws Exception { - URL url = new URL("http://wicket.apache.org/learn/books/wia.png"); + URL url = new URL("https://wicket.apache.org/learn/books/wia.png"); Instant lastModified = Connections.getLastModified(url); assertNotNull(lastModified); assertNotEquals(lastModified.toEpochMilli(), 0L);
