10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 8185151 27 * @summary test that navigation summary links are not linked when there are no dependencies 28 * @modules jdk.javadoc/jdk.javadoc.internal.api 29 * jdk.javadoc/jdk.javadoc.internal.tool 30 * @library ../lib /tools/lib 31 * @build toolbox.ToolBox toolbox.ModuleBuilder JavadocTester 32 * @run main TestModuleServicesLink 33 */ 34 35 import java.nio.file.Path; 36 import java.nio.file.Paths; 37 38 import toolbox.*; 39 40 public class TestModuleServicesLink extends JavadocTester { 41 42 public final ToolBox tb; 43 public static void main(String... args) throws Exception { 44 TestModuleServicesLink tester = new TestModuleServicesLink (); 45 tester.runTests(m -> new Object[] { Paths.get(m.getName()) }); 46 } 47 48 public TestModuleServicesLink () { 49 tb = new ToolBox(); | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 8185151 27 * @summary test that navigation summary links are not linked when there are no dependencies 28 * @modules jdk.javadoc/jdk.javadoc.internal.api 29 * jdk.javadoc/jdk.javadoc.internal.tool 30 * jdk.compiler/com.sun.tools.javac.api 31 * jdk.compiler/com.sun.tools.javac.main 32 * @library ../lib /tools/lib 33 * @build toolbox.ToolBox toolbox.ModuleBuilder JavadocTester 34 * @run main TestModuleServicesLink 35 */ 36 37 import java.nio.file.Path; 38 import java.nio.file.Paths; 39 40 import toolbox.*; 41 42 public class TestModuleServicesLink extends JavadocTester { 43 44 public final ToolBox tb; 45 public static void main(String... args) throws Exception { 46 TestModuleServicesLink tester = new TestModuleServicesLink (); 47 tester.runTests(m -> new Object[] { Paths.get(m.getName()) }); 48 } 49 50 public TestModuleServicesLink () { 51 tb = new ToolBox(); |