You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2021/04/22 21:32:21 UTC

[maven-doxia-linkcheck] branch master updated: [DOXIATOOLS-70] Require Java 8

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-linkcheck.git


The following commit(s) were added to refs/heads/master by this push:
     new 57f6448  [DOXIATOOLS-70] Require Java 8
57f6448 is described below

commit 57f64484acfc49792749148d58611f057fd4fb9b
Author: rfscholte <rf...@apache.org>
AuthorDate: Thu Apr 22 23:32:01 2021 +0200

    [DOXIATOOLS-70] Require Java 8
---
 pom.xml                                                               | 2 +-
 .../maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java       | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 021991b..205bcaf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,7 +57,7 @@ under the License.
   </distributionManagement>
   
   <properties>
-    <javaVersion>7</javaVersion>
+    <javaVersion>8</javaVersion>
     <project.build.outputTimestamp>2020-04-07T21:04:00Z</project.build.outputTimestamp>
   </properties>
 
diff --git a/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java b/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java
index e7447c7..0d6f67f 100644
--- a/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java
+++ b/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java
@@ -53,7 +53,9 @@ public class HTTPLinkValidatorTest extends TestCase
 
             this.hlv = new OnlineHTTPLinkValidator();
 
-            assertEquals( LinkcheckFileResult.VALID_LEVEL, checkLink( "http://www.apache.org" ).getStatus() );
+            // http://www.apache.org is being redirected to https://www.apache.org
+            assertEquals( LinkcheckFileResult.WARNING_LEVEL, checkLink( "http://www.apache.org" ).getStatus() );
+            assertEquals( LinkcheckFileResult.VALID_LEVEL, checkLink( "https://www.apache.org" ).getStatus() );
             assertEquals( LinkcheckFileResult.ERROR_LEVEL, checkLink( "http://www.example.com>);" ).getStatus() );
         }
         else