elharo commented on a change in pull request #34: [MJAVADOC-628] - add
javadoc.io link pattern when <detectLink> option is …
URL:
https://github.com/apache/maven-javadoc-plugin/pull/34#discussion_r405426265
##########
File path:
src/test/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojoTest.java
##########
@@ -87,4 +88,20 @@ public void testMJAVADOC527_DetectLinksRecursion()
assertFalse( mojo.isValidJavadocLink(
"http://javamail.java.net/mailapi/apidocs", false ) );
assertTrue( mojo.isValidJavadocLink(
"http://commons.apache.org/proper/commons-lang/apidocs", false ) );
}
+
+ public void test_urlEncode()
+ {
+ assertEquals("test+abc", urlEncode("test abc"));
+ }
+
+ public void test_urlEncode_null_input()
+ {
+ assertNull(urlEncode(null));
+ }
+
+ public void test_getJavadocIOLink()
Review comment:
testGetJavadocIOLink
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services