langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java
changeset 7614 cfadc977ca75
parent 5520 86e4b9a9da40
child 7681 1f0819a3341f
equal deleted inserted replaced
7336:3fd30668e9b5 7614:cfadc977ca75
    38     private static final String BUG_ID = "4634891";
    38     private static final String BUG_ID = "4634891";
    39 
    39 
    40     private static final String[][] TEST = {
    40     private static final String[][] TEST = {
    41         //The public method should be overriden
    41         //The public method should be overriden
    42         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    42         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    43          "Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg1/BaseClass.html#publicMethod"},
    43          "<dt><strong>Overrides:</strong></dt>" + NL +
       
    44                  "<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod()\">" +
       
    45                  "publicMethod</a></code>&nbsp;in class&nbsp;<code>" +
       
    46                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
    44 
    47 
    45         //The public method in different package should be overriden
    48         //The public method in different package should be overriden
    46         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    49         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    47          "Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg1/BaseClass.html#publicMethod"},
    50          "<dt><strong>Overrides:</strong></dt>" + NL +
       
    51                  "<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod()\">" +
       
    52                  "publicMethod</a></code>&nbsp;in class&nbsp;<code>" +
       
    53                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
    48 
    54 
    49         //The package private method should be overriden since the base and sub class are in the same
    55         //The package private method should be overriden since the base and sub class are in the same
    50         //package.
    56         //package.
    51         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    57         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    52          "Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg1/BaseClass.html#packagePrivateMethod"}
    58          "<dt><strong>Overrides:</strong></dt>" + NL +
       
    59                  "<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod()\">" +
       
    60                  "packagePrivateMethod</a></code>&nbsp;in class&nbsp;<code>" +
       
    61                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"}
    53     };
    62     };
    54 
    63 
    55     private static final String[][] NEGATED_TEST = {
    64     private static final String[][] NEGATED_TEST = {
    56 
    65 
    57         //The private method in should not be overriden
    66         //The private method in should not be overriden
    58         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    67         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    59          "Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg1/BaseClass.html#privateMethod"},
    68          "<dt><strong>Overrides:</strong></dt>" + NL +
       
    69                  "<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod()\">"},
    60 
    70 
    61         //The private method in different package should not be overriden
    71         //The private method in different package should not be overriden
    62         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    72         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    63          "Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg1/BaseClass.html#privateMethod"},
    73          "<dt><strong>Overrides:</strong></dt>" + NL +
       
    74                  "<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod()\">"},
    64 
    75 
    65         //The package private method should not be overriden since the base and sub class are in
    76         //The package private method should not be overriden since the base and sub class are in
    66         //different packages.
    77         //different packages.
    67         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    78         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    68          "Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg1/BaseClass.html#packagePrivateMethod"},
    79          "<dt><strong>Overrides:</strong></dt>" + NL +
       
    80                  "<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod()\">"},
    69     };
    81     };
    70 
    82 
    71     private static final String[] ARGS =
    83     private static final String[] ARGS =
    72         new String[] {
    84         new String[] {
    73             "-d", BUG_ID, "-sourcepath", SRC_DIR, "-package", "pkg1", "pkg2"};
    85             "-d", BUG_ID, "-sourcepath", SRC_DIR, "-package", "pkg1", "pkg2"};