langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java
changeset 1787 1aa079321cd2
parent 10 06bc494ca11e
child 2216 b124d5c924eb
equal deleted inserted replaced
1753:d4c11dcedac3 1787:1aa079321cd2
    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:</B><DD><CODE><A HREF=\"../pkg1/BaseClass.html#publicMethod"},
    43          "Overrides:</STRONG><DD><CODE><A HREF=\"../pkg1/BaseClass.html#publicMethod"},
    44 
    44 
    45         //The public method in different package should be overriden
    45         //The public method in different package should be overriden
    46         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    46         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    47          "Overrides:</B><DD><CODE><A HREF=\"../pkg1/BaseClass.html#publicMethod"},
    47          "Overrides:</STRONG><DD><CODE><A HREF=\"../pkg1/BaseClass.html#publicMethod"},
    48 
    48 
    49         //The package private method should be overriden since the base and sub class are in the same
    49         //The package private method should be overriden since the base and sub class are in the same
    50         //package.
    50         //package.
    51         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    51         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    52          "Overrides:</B><DD><CODE><A HREF=\"../pkg1/BaseClass.html#packagePrivateMethod"}
    52          "Overrides:</STRONG><DD><CODE><A HREF=\"../pkg1/BaseClass.html#packagePrivateMethod"}
    53     };
    53     };
    54 
    54 
    55     private static final String[][] NEGATED_TEST = {
    55     private static final String[][] NEGATED_TEST = {
    56 
    56 
    57         //The private method in should not be overriden
    57         //The private method in should not be overriden
    58         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    58         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    59          "Overrides:</B><DD><CODE><A HREF=\"../pkg1/BaseClass.html#privateMethod"},
    59          "Overrides:</STRONG><DD><CODE><A HREF=\"../pkg1/BaseClass.html#privateMethod"},
    60 
    60 
    61         //The private method in different package should not be overriden
    61         //The private method in different package should not be overriden
    62         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    62         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    63          "Overrides:</B><DD><CODE><A HREF=\"../pkg1/BaseClass.html#privateMethod"},
    63          "Overrides:</STRONG><DD><CODE><A HREF=\"../pkg1/BaseClass.html#privateMethod"},
    64 
    64 
    65         //The package private method should not be overriden since the base and sub class are in
    65         //The package private method should not be overriden since the base and sub class are in
    66         //different packages.
    66         //different packages.
    67         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    67         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    68          "Overrides:</B><DD><CODE><A HREF=\"../pkg1/BaseClass.html#packagePrivateMethod"},
    68          "Overrides:</STRONG><DD><CODE><A HREF=\"../pkg1/BaseClass.html#packagePrivateMethod"},
    69     };
    69     };
    70 
    70 
    71     private static final String[] ARGS =
    71     private static final String[] ARGS =
    72         new String[] {
    72         new String[] {
    73             "-d", BUG_ID, "-sourcepath", SRC_DIR, "-package", "pkg1", "pkg2"};
    73             "-d", BUG_ID, "-sourcepath", SRC_DIR, "-package", "pkg1", "pkg2"};