Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/test/com/sun/javadoc/_template/TemplateComplete.java
48425 views
/*1* Copyright (c) 2002, 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 <BUG-ID>26* @ summary <BUG-SYNOPSIS>27* @ author <AUTHOR> or delete28* @ library ../lib/29* @ build JavadocTester <CLASS NAME>30* @ run main <CLASS NAME>31*/3233public class TemplateComplete extends JavadocTester {3435//Test information.36private static final String BUG_ID = "<BUG ID>";37private static final String OUTPUT_DIR = "docs-" + BUG_ID;3839//Javadoc arguments.40private static final String[] ARGS = new String[] {41"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR42};4344//Input for string search tests.45private static final String[][] TEST = NO_TEST;46private static final String[][] NEGATED_TEST = NO_TEST;4748//Input for Javadoc return code test.49private static final int EXPECTED_EXIT_CODE = 0;505152//Input for file diff test.53private static final String[][] FILES_TO_DIFF = {};5455/**56* The entry point of the test.57* @param args the array of command line arguments.58*/59public static void main(String[] args) {60TemplateComplete tester = new TemplateComplete();61int actualExitCode = run(tester, ARGS, TEST, NEGATED_TEST);62tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode);63tester.runDiffs(FILES_TO_DIFF, false);64tester.printSummary();65}6667/**68* {@inheritDoc}69*/70public String getBugId() {71return BUG_ID;72}7374/**75* {@inheritDoc}76*/77public String getBugName() {78return getClass().getName();79}80}818283