langtools/test/com/sun/javadoc/testEncoding/TestEncoding.java
changeset 24072 e7549dcbc4af
parent 24071 b0845717434e
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    33  * @run main TestEncoding
    33  * @run main TestEncoding
    34  */
    34  */
    35 
    35 
    36 public class TestEncoding extends JavadocTester {
    36 public class TestEncoding extends JavadocTester {
    37 
    37 
    38     private static final String BUG_ID = "4661481";
       
    39 
    38 
    40     //If ??? is found in the output, the source file was not read with the correct encoding setting.
    39     //If ??? is found in the output, the source file was not read with the correct encoding setting.
    41     private static final String[][] NEGATED_TEST = {
    40     private static final String[][] NEGATED_TEST = {
    42         {BUG_ID + "/EncodeTest.html", "??"}
    41         { "EncodeTest.html", "??"}
    43     };
    42     };
    44     private static final String[] ARGS =
    43     private static final String[] ARGS =
    45         new String[] {
    44         new String[] {
    46             "-d", BUG_ID, "-sourcepath", SRC_DIR,
    45             "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
    47             "-encoding", "iso-8859-1", SRC_DIR + "/EncodeTest.java"
    46             "-encoding", "iso-8859-1", SRC_DIR + "/EncodeTest.java"
    48         };
    47         };
    49 
    48 
    50     /**
    49     /**
    51      * The entry point of the test.
    50      * The entry point of the test.
    54     public static void main(String[] args) {
    53     public static void main(String[] args) {
    55         TestEncoding tester = new TestEncoding();
    54         TestEncoding tester = new TestEncoding();
    56         tester.run(ARGS, NO_TEST, NEGATED_TEST);
    55         tester.run(ARGS, NO_TEST, NEGATED_TEST);
    57         tester.printSummary();
    56         tester.printSummary();
    58     }
    57     }
    59 
       
    60     /**
       
    61      * {@inheritDoc}
       
    62      */
       
    63     public String getBugId() {
       
    64         return BUG_ID;
       
    65     }
       
    66 
       
    67     /**
       
    68      * {@inheritDoc}
       
    69      */
       
    70     public String getBugName() {
       
    71         return getClass().getName();
       
    72     }
       
    73 }
    58 }