langtools/test/com/sun/javadoc/testUnnamedPackage/TestUnnamedPackage.java
changeset 23971 f5ff1f5a8dee
parent 7681 1f0819a3341f
child 24065 fc4022e50129
equal deleted inserted replaced
23970:76f4acb11952 23971:f5ff1f5a8dee
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2014, 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.
    38     //Test information.
    38     //Test information.
    39     private static final String BUG_ID = "4904075-4774450-5015144";
    39     private static final String BUG_ID = "4904075-4774450-5015144";
    40 
    40 
    41     //Javadoc arguments.
    41     //Javadoc arguments.
    42     private static final String[] ARGS = new String[] {
    42     private static final String[] ARGS = new String[] {
    43         "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + FS + "C.java"
    43         "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
    44     };
    44     };
    45 
    45 
    46     //Input for string search tests.
    46     //Input for string search tests.
    47     private static final String[][] TEST = {
    47     private static final String[][] TEST = {
    48         {BUG_ID + FS + "package-summary.html",
    48         {BUG_ID + "/package-summary.html",
    49             "<h1 title=\"Package\" class=\"title\">Package&nbsp;&lt;Unnamed&gt;</h1>"
    49             "<h1 title=\"Package\" class=\"title\">Package&nbsp;&lt;Unnamed&gt;</h1>"
    50         },
    50         },
    51         {BUG_ID + FS + "package-summary.html",
    51         {BUG_ID + "/package-summary.html",
    52             "This is a package comment for the unnamed package."
    52             "This is a package comment for the unnamed package."
    53         },
    53         },
    54         {BUG_ID + FS + "package-summary.html",
    54         {BUG_ID + "/package-summary.html",
    55             "This is a class in the unnamed package."
    55             "This is a class in the unnamed package."
    56         },
    56         },
    57         {BUG_ID + FS + "package-tree.html",
    57         {BUG_ID + "/package-tree.html",
    58             "<h1 class=\"title\">Hierarchy For Package &lt;Unnamed&gt;</h1>"
    58             "<h1 class=\"title\">Hierarchy For Package &lt;Unnamed&gt;</h1>"
    59         },
    59         },
    60         {BUG_ID + FS + "index-all.html",
    60         {BUG_ID + "/index-all.html",
    61             "title=\"class in &lt;Unnamed&gt;\""
    61             "title=\"class in &lt;Unnamed&gt;\""
    62         },
    62         },
    63         {BUG_ID + FS + "C.html", "<a href=\"package-summary.html\">"}
    63         {BUG_ID + "/C.html", "<a href=\"package-summary.html\">"}
    64     };
    64     };
    65     private static final String[][] NEGATED_TEST = {
    65     private static final String[][] NEGATED_TEST = {
    66         {ERROR_OUTPUT, "BadSource"},
    66         {ERROR_OUTPUT, "BadSource"},
    67     };
    67     };
    68 
    68