1 /* |
1 /* |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 * @test |
25 * @test |
26 * @bug 8004893 8022738 8029143 8175200 8186332 8184205 |
26 * @bug 8004893 8022738 8029143 8175200 8186332 8184205 |
27 * @summary Make sure that the lambda feature changes work fine in |
27 * @summary Make sure that the lambda feature changes work fine in |
28 * javadoc. |
28 * javadoc. |
29 * @author bpatel |
29 * @author bpatel |
30 * @library ../lib/ |
30 * @library ../../lib/ |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
32 * @build JavadocTester TestLambdaFeature |
32 * @build javadoc.tester.* TestLambdaFeature |
33 * @run main TestLambdaFeature |
33 * @run main TestLambdaFeature |
34 */ |
34 */ |
35 |
35 |
36 /* |
36 /* |
37 * NOTE : This test should be elided when version 1.7 support is removed from the JDK |
37 * NOTE : This test should be elided when version 1.7 support is removed from the JDK |
38 * or the negative part of the test showing 1.7's non-support should be |
38 * or the negative part of the test showing 1.7's non-support should be |
39 * removed [ 8022738 ] |
39 * removed [ 8022738 ] |
40 */ |
40 */ |
41 |
41 |
|
42 import javadoc.tester.JavadocTester; |
|
43 |
42 public class TestLambdaFeature extends JavadocTester { |
44 public class TestLambdaFeature extends JavadocTester { |
43 |
45 |
44 public static void main(String... args) throws Exception { |
46 public static void main(String... args) throws Exception { |
45 TestLambdaFeature tester = new TestLambdaFeature(); |
47 TestLambdaFeature tester = new TestLambdaFeature(); |
46 tester.runTests(); |
48 tester.runTests(); |
47 } |
49 } |
48 |
50 |
49 @Test |
51 @Test |
50 void testDefault() { |
52 public void testDefault() { |
51 javadoc("-d", "out-default", |
53 javadoc("-d", "out-default", |
52 "-sourcepath", testSrc, |
54 "-sourcepath", testSrc, |
53 "pkg", "pkg1"); |
55 "pkg", "pkg1"); |
54 checkExit(Exit.OK); |
56 checkExit(Exit.OK); |
55 |
57 |