langtools/test/com/sun/javadoc/testCompletionFailure/TestCompletionFailure.java
changeset 24072 e7549dcbc4af
parent 24065 fc4022e50129
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    31  * @run main TestCompletionFailure
    31  * @run main TestCompletionFailure
    32  */
    32  */
    33 
    33 
    34 public class TestCompletionFailure extends JavadocTester {
    34 public class TestCompletionFailure extends JavadocTester {
    35 
    35 
    36     private static final String BUG_ID = "8027977";
       
    37 
       
    38     //Input for string search tests.
    36     //Input for string search tests.
    39     private static final String[][] NEGATED_TEST = {
    37     private static final String[][] NEGATED_TEST = {
    40         {ERROR_OUTPUT, "TestCompletionFailure: error - " +
    38         {ERROR_OUTPUT, "TestCompletionFailure: error - " +
    41             "com.sun.tools.javac.code.Symbol$CompletionFailure: class file for " +
    39             "com.sun.tools.javac.code.Symbol$CompletionFailure: class file for " +
    42             "sun.util.locale.provider.LocaleProviderAdapter not found"
    40             "sun.util.locale.provider.LocaleProviderAdapter not found"
    43         }
    41         }
    44     };
    42     };
    45 
    43 
    46     private static final String[] ARGS = new String[] {
    44     private static final String[] ARGS = new String[] {
    47         "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"
    45         "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"
    48     };
    46     };
    49 
    47 
    50     /**
    48     /**
    51      * The entry point of the test.
    49      * The entry point of the test.
    52      * @param args the array of command line arguments.
    50      * @param args the array of command line arguments.
    54     public static void main(String[] args) throws Exception {
    52     public static void main(String[] args) throws Exception {
    55         TestCompletionFailure tester = new TestCompletionFailure();
    53         TestCompletionFailure tester = new TestCompletionFailure();
    56         tester.run(ARGS, NO_TEST, NEGATED_TEST);
    54         tester.run(ARGS, NO_TEST, NEGATED_TEST);
    57         tester.printSummary();
    55         tester.printSummary();
    58     }
    56     }
    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 }
    57 }