VersionNumber.java revision 3294:9adfb22ff08f
10SN/A/* 29330SN/A * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. 30SN/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 40SN/A * 50SN/A * This code is free software; you can redistribute it and/or modify it 60SN/A * under the terms of the GNU General Public License version 2 only, as 72362SN/A * published by the Free Software Foundation. 80SN/A * 92362SN/A * This code is distributed in the hope that it will be useful, but WITHOUT 100SN/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 110SN/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 120SN/A * version 2 for more details (a copy is included in the LICENSE file that 130SN/A * accompanied this code). 140SN/A * 150SN/A * You should have received a copy of the GNU General Public License version 160SN/A * 2 along with this work; if not, write to the Free Software Foundation, 170SN/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 180SN/A * 190SN/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 200SN/A * or visit www.oracle.com if you need additional information or have any 212362SN/A * questions. 222362SN/A */ 232362SN/A 240SN/A/* 250SN/A * @test 260SN/A * @bug 4720849 270SN/A * @summary Standard doclet contains hard-coded version number 280SN/A * @author dkramer 290SN/A * @library ../lib 300SN/A * @modules jdk.javadoc/jdk.javadoc.internal.tool 310SN/A * @build JavadocTester 320SN/A * @run main VersionNumber 330SN/A */ 340SN/A 350SN/A 362190SN/A/** 370SN/A * Runs javadoc and runs regression tests on the resulting HTML. 380SN/A */ 390SN/Apublic class VersionNumber extends JavadocTester { 400SN/A 410SN/A public static void main(String... args) throws Exception { 420SN/A VersionNumber tester = new VersionNumber(); 430SN/A tester.runTests(); 440SN/A } 450SN/A 460SN/A @Test 470SN/A void test() { 480SN/A javadoc("-d", "out", 490SN/A "p1"); 500SN/A checkExit(Exit.OK); 510SN/A 520SN/A // Test the proper DOCTYPE element is present: 530SN/A checkOutput("p1/C.html", true, 540SN/A "<!-- Generated by javadoc ("); 550SN/A } 560SN/A 570SN/A} 580SN/A