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:08:00 UTC
[maven-doxia-linkcheck] 01/01: Fix test based on new policy for
apache.org
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-doxia-linkcheck.git
commit 7f5b9a36c5ff4856ca4e2e770f2bd8e9636d077c
Author: rfscholte <rf...@apache.org>
AuthorDate: Thu Apr 22 23:07:39 2021 +0200
Fix test based on new policy for apache.org
---
.../maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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