Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/test/com/sun/javadoc/testDocFiles/TestDocFiles.java
86410 views
/*1* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/*24* @test25* @bug 800894926* @summary verify that doc-files get copied27* @library ../lib/28* @build JavadocTester29* @build TestDocFiles30* @run main TestDocFiles31*/3233public class TestDocFiles extends JavadocTester {3435private static final String BUG_ID = "8008949";36private static final String[][] TEST = {37{"tmp" + FS + "pkg" + FS + "doc-files" + FS + "test.txt", "test file"}};3839private static final String[] ARGS =40new String[] {41"-d", "tmp", "-sourcepath", SRC_DIR, "pkg"};4243/**44* The entry point of the test.45* @param args the array of command line arguments.46*/47public static void main(String[] args) {48TestDocFiles tester = new TestDocFiles();49run(tester, ARGS, TEST, NO_TEST);50tester.printSummary();51}5253/**54* {@inheritDoc}55*/56public String getBugId() {57return BUG_ID;58}5960/**61* {@inheritDoc}62*/63public String getBugName() {64return getClass().getName();65}66}676869