langtools/test/com/sun/javadoc/constantValues/TestConstantValuesDriver.java
changeset 23971 f5ff1f5a8dee
parent 7681 1f0819a3341f
child 24065 fc4022e50129
equal deleted inserted replaced
23970:76f4acb11952 23971:f5ff1f5a8dee
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 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.
    33  */
    33  */
    34 public class TestConstantValuesDriver extends JavadocTester {
    34 public class TestConstantValuesDriver extends JavadocTester {
    35 
    35 
    36     private static final String BUG_ID = "4504730-4526070-5077317";
    36     private static final String BUG_ID = "4504730-4526070-5077317";
    37     private static final String[] ARGS = new String[] {
    37     private static final String[] ARGS = new String[] {
    38         "-d", BUG_ID, SRC_DIR + FS + "TestConstantValues.java",
    38         "-d", BUG_ID, SRC_DIR + "/TestConstantValues.java",
    39         SRC_DIR + FS + "TestConstantValues2.java",
    39         SRC_DIR + "/TestConstantValues2.java",
    40         SRC_DIR + FS + "A.java"
    40         SRC_DIR + "/A.java"
    41     };
    41     };
    42 
    42 
    43     /**
    43     /**
    44      * The entry point of the test.
    44      * The entry point of the test.
    45      * @param args the array of command line arguments.
    45      * @param args the array of command line arguments.
    46      */
    46      */
    47     public static void main(String[] args) {
    47     public static void main(String[] args) {
    48         String[][] tests = new String[5][2];
    48         String[][] tests = new String[5][2];
    49         for (int i = 0; i < tests.length-1; i++) {
    49         for (int i = 0; i < tests.length-1; i++) {
    50             tests[i][0] = BUG_ID + FS + "constant-values.html";
    50             tests[i][0] = BUG_ID + "/constant-values.html";
    51             tests[i][1] = "TEST"+(i+1)+"PASSES";
    51             tests[i][1] = "TEST"+(i+1)+"PASSES";
    52         }
    52         }
    53         tests[tests.length-1][0] = BUG_ID + FS + "constant-values.html";
    53         tests[tests.length-1][0] = BUG_ID + "/constant-values.html";
    54         tests[tests.length-1][1] = "<code>\"&lt;Hello World&gt;\"</code>";
    54         tests[tests.length-1][1] = "<code>\"&lt;Hello World&gt;\"</code>";
    55         TestConstantValuesDriver tester = new TestConstantValuesDriver();
    55         TestConstantValuesDriver tester = new TestConstantValuesDriver();
    56         run(tester, ARGS, tests, NO_TEST);
    56         run(tester, ARGS, tests, NO_TEST);
    57         tester.printSummary();
    57         tester.printSummary();
    58     }
    58     }