langtools/test/com/sun/javadoc/testThrowsHead/TestThrowsHead.java
changeset 21478 fa4c7cda1b41
parent 7681 1f0819a3341f
child 23971 f5ff1f5a8dee
equal deleted inserted replaced
21477:02dc78554e0c 21478:fa4c7cda1b41
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2013, 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.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 4530727
    26  * @bug 4530727 8026567
    27  * @summary When an exception is declared in the method signature but
    27  * @summary When an exception is declared in the method signature but
    28  * not documented with a throws tag, we generate a link to it in the
    28  * not documented with a throws tag, we generate a link to it in the
    29  * throws section.  Make sure that the link is below a Throws heading.
    29  * throws section.  Make sure that the link is below a Throws heading.
    30  * @author jamieh
    30  * @author jamieh
    31  * @library ../lib/
    31  * @library ../lib/
    36 
    36 
    37 public class TestThrowsHead extends JavadocTester {
    37 public class TestThrowsHead extends JavadocTester {
    38 
    38 
    39     private static final String BUG_ID = "4530727";
    39     private static final String BUG_ID = "4530727";
    40     private static final String[][] TEST = {
    40     private static final String[][] TEST = {
    41         {BUG_ID + FS + "C.html", "<dt><span class=\"strong\">Throws:</span>"}
    41         {BUG_ID + FS + "C.html", "<dt><span class=\"throwsLabel\">Throws:</span>"}
    42     };
    42     };
    43     private static final String[][] NEGATED_TEST = NO_TEST;
    43     private static final String[][] NEGATED_TEST = NO_TEST;
    44     private static final String[] ARGS = new String[] {
    44     private static final String[] ARGS = new String[] {
    45         "-d", BUG_ID, SRC_DIR + FS + "C.java"
    45         "-d", BUG_ID, SRC_DIR + FS + "C.java"
    46     };
    46     };