Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/test/com/sun/javadoc/_template/Template.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 Template 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/**49* The entry point of the test.50* @param args the array of command line arguments.51*/52public static void main(String[] args) {53Template tester = new Template();54run(tester, ARGS, TEST, NEGATED_TEST);55tester.printSummary();56}5758/**59* {@inheritDoc}60*/61public String getBugId() {62return BUG_ID;63}6465/**66* {@inheritDoc}67*/68public String getBugName() {69return getClass().getName();70}71}727374