test/langtools/jdk/javadoc/doclet/testLambdaFeature/TestLambdaFeature.java
changeset 53097 2e82ca64b25d
parent 52616 1a395165c09b
child 55197 0ca8e495bbba
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
     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 
    99                 + "reference.</dd>\n"
   101                 + "reference.</dd>\n"
   100                 + "</dl>");
   102                 + "</dl>");
   101     }
   103     }
   102 
   104 
   103     @Test
   105     @Test
   104     void testSource7() {
   106     public void testSource7() {
   105         javadoc("-d", "out-7",
   107         javadoc("-d", "out-7",
   106                 "-sourcepath", testSrc,
   108                 "-sourcepath", testSrc,
   107                 "-source", "1.7",
   109                 "-source", "1.7",
   108                 "pkg1");
   110                 "pkg1");
   109         checkExit(Exit.OK);
   111         checkExit(Exit.OK);