-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MPLUGIN-482] Consider implicit module name for javadoc URL calculation
Add example JDK21 generated javadoc Execute IT with profile "run-its"
- Loading branch information
Showing
46 changed files
with
5,171 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
...in-tools-api/src/test/java/org/apache/maven/tools/plugin/javadoc/JavadocNonLtsSiteIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.maven.tools.plugin.javadoc; | ||
|
||
import java.io.IOException; | ||
import java.net.URI; | ||
import java.util.stream.Stream; | ||
|
||
import org.junit.jupiter.api.Tag; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.Arguments; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
@Tag("nonLtsJavadocs") | ||
class JavadocNonLtsSiteIT extends JavadocSiteIT { | ||
|
||
// tests against all non-LTS Javadoc sites need to be enabled explicitly via tag "nonLtsJavadocs" | ||
static Stream<Arguments> javadocBaseUrls() { | ||
return Stream.of( | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/20/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/19/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/18/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/16/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/15/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/14/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/13/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/en/java/javase/12/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/javase/10/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/javase/9/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/javase/7/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/javase/6/docs/api/")), | ||
Arguments.of(URI.create("https://docs.oracle.com/javase/1.5.0/docs/api/")), | ||
Arguments.of(URI.create("https://javaalmanac.io/jdk/1.4/api/index.html")), | ||
Arguments.of(URI.create("https://javaalmanac.io/jdk/1.3/api/index.html"))); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("javadocBaseUrls") | ||
void testConstructors(URI javadocBaseUrl) throws IOException { | ||
super.testConstructors(javadocBaseUrl); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("javadocBaseUrls") | ||
void testMethods(URI javadocBaseUrl) throws IOException { | ||
super.testMethods(javadocBaseUrl); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("javadocBaseUrls") | ||
void testFields(URI javadocBaseUrl) throws IOException { | ||
super.testFields(javadocBaseUrl); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("javadocBaseUrls") | ||
void testNestedClass(URI javadocBaseUrl) throws IOException { | ||
super.testNestedClass(javadocBaseUrl); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
maven-plugin-tools-api/src/test/resources/javadoc/jdk21/allclasses-index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en"> | ||
<head> | ||
<!-- Generated by javadoc (21) on Fri Sep 08 10:05:46 CEST 2023 --> | ||
<title>All Classes and Interfaces</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta name="dc.created" content="2023-09-08"> | ||
<meta name="description" content="class index"> | ||
<meta name="generator" content="javadoc/AllClassesIndexWriter"> | ||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> | ||
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style"> | ||
<script type="text/javascript" src="script.js"></script> | ||
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script> | ||
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script> | ||
</head> | ||
<body class="all-classes-index-page"> | ||
<script type="text/javascript">var pathtoroot = "./"; | ||
loadScripts(document, 'script');</script> | ||
<noscript> | ||
<div>JavaScript is disabled on your browser.</div> | ||
</noscript> | ||
<div class="flex-box"> | ||
<header role="banner" class="flex-header"> | ||
<nav role="navigation"> | ||
<!-- ========= START OF TOP NAVBAR ======= --> | ||
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> | ||
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> | ||
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> | ||
<li><a href="index.html">Overview</a></li> | ||
<li>Package</li> | ||
<li>Class</li> | ||
<li><a href="overview-tree.html">Tree</a></li> | ||
<li><a href="index-all.html">Index</a></li> | ||
<li><a href="help-doc.html#all-classes">Help</a></li> | ||
</ul> | ||
</div> | ||
<div class="sub-nav"> | ||
<div id="navbar-sub-list"></div> | ||
<div class="nav-list-search"><a href="search.html">SEARCH</a> | ||
<input type="text" id="search-input" disabled placeholder="Search"> | ||
<input type="reset" id="reset-button" disabled value="reset"> | ||
</div> | ||
</div> | ||
<!-- ========= END OF TOP NAVBAR ========= --> | ||
<span class="skip-nav" id="skip-navbar-top"></span></nav> | ||
</header> | ||
<div class="flex-content"> | ||
<main role="main"> | ||
<div class="header"> | ||
<h1 title="All Classes and Interfaces" class="title">All Classes and Interfaces</h1> | ||
</div> | ||
<div id="all-classes-table"> | ||
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="all-classes-table-tab0" role="tab" aria-selected="true" aria-controls="all-classes-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="all-classes-table-tab2" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab2', 2)" class="table-tab">Classes</button><button id="all-classes-table-tab3" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab3', 2)" class="table-tab">Enum Classes</button></div> | ||
<div id="all-classes-table.tabpanel" role="tabpanel"> | ||
<div class="summary-table two-column-summary" aria-labelledby="all-classes-table-tab0"> | ||
<div class="table-header col-first">Class</div> | ||
<div class="table-header col-last">Description</div> | ||
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/CurrentClass.html" title="class in org.apache.maven.tools.plugin.extractor.annotations.converter.test">CurrentClass</a></div> | ||
<div class="col-last even-row-color all-classes-table all-classes-table-tab2"> </div> | ||
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/OtherClass.html" title="class in org.apache.maven.tools.plugin.extractor.annotations.converter.test">OtherClass</a></div> | ||
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2"> </div> | ||
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/other/OtherClassOtherPackage.html" title="class in org.apache.maven.tools.plugin.extractor.annotations.converter.test.other">OtherClassOtherPackage</a></div> | ||
<div class="col-last even-row-color all-classes-table all-classes-table-tab2"> </div> | ||
<div class="col-first odd-row-color all-classes-table all-classes-table-tab3"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/other/OtherClassOtherPackage.EmbeddedEnum.html" title="enum class in org.apache.maven.tools.plugin.extractor.annotations.converter.test.other">OtherClassOtherPackage.EmbeddedEnum</a></div> | ||
<div class="col-last odd-row-color all-classes-table all-classes-table-tab3"> </div> | ||
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/SuperClass.html" title="class in org.apache.maven.tools.plugin.extractor.annotations.converter.test">SuperClass</a></div> | ||
<div class="col-last even-row-color all-classes-table all-classes-table-tab2"> </div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
66 changes: 66 additions & 0 deletions
66
maven-plugin-tools-api/src/test/resources/javadoc/jdk21/allpackages-index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en"> | ||
<head> | ||
<!-- Generated by javadoc (21) on Fri Sep 08 10:05:46 CEST 2023 --> | ||
<title>All Packages</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta name="dc.created" content="2023-09-08"> | ||
<meta name="description" content="package index"> | ||
<meta name="generator" content="javadoc/AllPackagesIndexWriter"> | ||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> | ||
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style"> | ||
<script type="text/javascript" src="script.js"></script> | ||
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script> | ||
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script> | ||
</head> | ||
<body class="all-packages-index-page"> | ||
<script type="text/javascript">var pathtoroot = "./"; | ||
loadScripts(document, 'script');</script> | ||
<noscript> | ||
<div>JavaScript is disabled on your browser.</div> | ||
</noscript> | ||
<div class="flex-box"> | ||
<header role="banner" class="flex-header"> | ||
<nav role="navigation"> | ||
<!-- ========= START OF TOP NAVBAR ======= --> | ||
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> | ||
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> | ||
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> | ||
<li><a href="index.html">Overview</a></li> | ||
<li>Package</li> | ||
<li>Class</li> | ||
<li><a href="overview-tree.html">Tree</a></li> | ||
<li><a href="index-all.html">Index</a></li> | ||
<li><a href="help-doc.html#all-packages">Help</a></li> | ||
</ul> | ||
</div> | ||
<div class="sub-nav"> | ||
<div id="navbar-sub-list"></div> | ||
<div class="nav-list-search"><a href="search.html">SEARCH</a> | ||
<input type="text" id="search-input" disabled placeholder="Search"> | ||
<input type="reset" id="reset-button" disabled value="reset"> | ||
</div> | ||
</div> | ||
<!-- ========= END OF TOP NAVBAR ========= --> | ||
<span class="skip-nav" id="skip-navbar-top"></span></nav> | ||
</header> | ||
<div class="flex-content"> | ||
<main role="main"> | ||
<div class="header"> | ||
<h1 title="All&nbsp;Packages" class="title">All Packages</h1> | ||
</div> | ||
<div class="caption"><span>Package Summary</span></div> | ||
<div class="summary-table two-column-summary"> | ||
<div class="table-header col-first">Package</div> | ||
<div class="table-header col-last">Description</div> | ||
<div class="col-first even-row-color"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/package-summary.html">org.apache.maven.tools.plugin.extractor.annotations.converter.test</a></div> | ||
<div class="col-last even-row-color"> </div> | ||
<div class="col-first odd-row-color"><a href="org/apache/maven/tools/plugin/extractor/annotations/converter/test/other/package-summary.html">org.apache.maven.tools.plugin.extractor.annotations.converter.test.other</a></div> | ||
<div class="col-last odd-row-color"> </div> | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.