test/langtools/jdk/javadoc/doclet/testGroupOption/TestGroupOption.java
changeset 54350 4f9772f4403d
parent 53097 2e82ca64b25d
equal deleted inserted replaced
54349:492af1f4b6d5 54350:4f9772f4403d
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, 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.
    60      @Test
    60      @Test
    61     // Make sure the "Other packages" section is printed and the header for empty section is not.
    61     // Make sure the "Other packages" section is printed and the header for empty section is not.
    62     // Make sure that the headers of group that is defined using patterns are printed.
    62     // Make sure that the headers of group that is defined using patterns are printed.
    63     public void test2() {
    63     public void test2() {
    64         javadoc("-d", "out-2",
    64         javadoc("-d", "out-2",
    65                 "--frames",
       
    66                 "-sourcepath", testSrc,
    65                 "-sourcepath", testSrc,
    67                 "-group", "Group pkg*", "pkg*",
    66                 "-group", "Group pkg*", "pkg*",
    68                 "-group", "Group abc*", "abc*",
    67                 "-group", "Group abc*", "abc*",
    69                 "-group", "Empty group", "qwerty*",
    68                 "-group", "Empty group", "qwerty*",
    70                 "-group", "Group a*", "a*",
    69                 "-group", "Group a*", "a*",
    71                 "pkg1", "pkg2", "pkg3", "abc1",  "abc2", "abc3", "other", testSrc("InUnnamedPackage.java"));
    70                 "pkg1", "pkg2", "pkg3", "abc1",  "abc2", "abc3", "other", testSrc("InUnnamedPackage.java"));
    72         checkExit(Exit.OK);
    71         checkExit(Exit.OK);
    73 
    72 
    74         checkOutput("overview-summary.html", true, "Group pkg*", "Group abc*", "Other Packages");
    73         checkOutput("index.html", true, "Group pkg*", "Group abc*", "Other Packages");
    75         checkOutput("overview-summary.html", false, "Empty group", "Group a*");
    74         checkOutput("index.html", false, "Empty group", "Group a*");
    76     }
    75     }
    77 
    76 
    78     @Test
    77     @Test
    79     public void test3() {
    78     public void test3() {
    80         // Make sure the warning is printed when -group is not used correctly.
    79         // Make sure the warning is printed when -group is not used correctly.