langtools/test/com/sun/javadoc/testDocFiles/TestDocFiles.java
author peytoia
Thu, 11 Apr 2013 12:22:23 +0900
changeset 16850 f6f6c2182678
parent 16324 332d7f5fdf62
child 23971 f5ff1f5a8dee
permissions -rw-r--r--
8009638: Wrong comment for PL in LocaleISOData, 1989 forward Poland is Republic of Poland Reviewed-by: okutsu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16324
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     1
/*
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     4
 *
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     8
 *
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    13
 * accompanied this code).
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    14
 *
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    18
 *
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    21
 * questions.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    22
 */
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    23
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    24
/*
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    25
 * @test
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    26
 * @bug 8008949
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    27
 * @summary verify that doc-files get copied
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    28
 * @library ../lib/
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    29
 * @build JavadocTester
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    30
 * @build TestDocFiles
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    31
 * @run main TestDocFiles
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    32
 */
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    33
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    34
public class TestDocFiles extends JavadocTester {
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    35
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    36
    private static final String BUG_ID = "8008949";
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    37
    private static final String[][] TEST = {
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    38
        {"tmp" + FS + "pkg" + FS + "doc-files" + FS + "test.txt", "test file"}};
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    39
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    40
    private static final String[] ARGS =
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    41
        new String[] {
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    42
            "-d", "tmp", "-sourcepath", SRC_DIR, "pkg"};
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    43
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    44
    /**
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    45
     * The entry point of the test.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    46
     * @param args the array of command line arguments.
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    47
     */
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    48
    public static void main(String[] args) {
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    49
        TestDocFiles tester = new TestDocFiles();
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    50
        run(tester, ARGS, TEST, NO_TEST);
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    51
        tester.printSummary();
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    52
    }
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    53
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    54
    /**
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    55
     * {@inheritDoc}
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    56
     */
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    57
    public String getBugId() {
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    58
        return BUG_ID;
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    59
    }
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    60
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    61
    /**
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    62
     * {@inheritDoc}
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    63
     */
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    64
    public String getBugName() {
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    65
        return getClass().getName();
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    66
    }
332d7f5fdf62 8008949: javadoc stopped copying doc-files
jjg
parents:
diff changeset
    67
}