You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2022/02/02 20:28:21 UTC
[wicket] 03/05: backport of d4e9fb4 (" Fix failing test by updating the resource url scheme to HTTPS ")
This is an automated email from the ASF dual-hosted git repository.
adelbene pushed a commit to annotated tag rel/wicket-8.14.0
in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 4b72c9d5d04a61446b9c3f6b61964760a148c334
Author: Andrea Del Bene <ad...@apache.org>
AuthorDate: Sat Jan 29 16:13:44 2022 +0100
backport of d4e9fb4 (" Fix failing test by updating the resource url scheme to HTTPS ")
---
.../src/test/java/org/apache/wicket/util/io/ConnectionsTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 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 ef95539..f91354c 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
@@ -16,18 +16,18 @@
*/
package org.apache.wicket.util.io;
-import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.notNullValue;
-
-import java.net.URL;
+import static org.junit.Assert.assertThat;
import org.apache.wicket.util.SlowTests;
import org.apache.wicket.util.time.Time;
import org.junit.Test;
import org.junit.experimental.categories.Category;
+import java.net.URL;
+
@SuppressWarnings("javadoc")
@Category(SlowTests.class)
public class ConnectionsTest
@@ -38,7 +38,7 @@ public class ConnectionsTest
@Test
public 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");
Time lastModified = Connections.getLastModified(url);
assertThat(lastModified, is(notNullValue()));
assertThat(lastModified.getMilliseconds(), is(not(0L)));