TestNoPackagesFile.java revision 3294:9adfb22ff08f
11541Srgrimes/* 21541Srgrimes * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. 31541Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 41541Srgrimes * 51541Srgrimes * This code is free software; you can redistribute it and/or modify it 61541Srgrimes * under the terms of the GNU General Public License version 2 only, as 71541Srgrimes * published by the Free Software Foundation. 81541Srgrimes * 91541Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 101541Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 111541Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 121541Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 131541Srgrimes * accompanied this code). 141541Srgrimes * 151541Srgrimes * You should have received a copy of the GNU General Public License version 161541Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 171541Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 181541Srgrimes * 191541Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 201541Srgrimes * or visit www.oracle.com if you need additional information or have any 211541Srgrimes * questions. 221541Srgrimes */ 231541Srgrimes 241541Srgrimes/* 251541Srgrimes * @test 261541Srgrimes * @bug 4475679 271541Srgrimes * @summary Verify that packages.html is no longer generated since it is no 281541Srgrimes * longer used. 291541Srgrimes * @author jamieh 301541Srgrimes * @library ../lib 311541Srgrimes * @modules jdk.javadoc/jdk.javadoc.internal.tool 321541Srgrimes * @build JavadocTester 3314505Shsu * @run main TestNoPackagesFile 3450477Speter */ 351541Srgrimes 361541Srgrimespublic class TestNoPackagesFile extends JavadocTester { 372165Spaul 382165Spaul public static void main(String... args) throws Exception { 392165Spaul TestNoPackagesFile tester = new TestNoPackagesFile(); 4015492Sbde tester.runTests(); 4170834Swollman } 421541Srgrimes 431541Srgrimes @Test 441541Srgrimes void test() { 451541Srgrimes javadoc("-d", "out", 461541Srgrimes "-sourcepath", testSrc, 471541Srgrimes testSrc("C.java")); 481541Srgrimes checkExit(Exit.OK); 4936079Swollman 5036079Swollman // packages.html file should not be generated anymore. 5195552Stanimura checkFiles(false, "packages.html"); 5295552Stanimura } 5395552Stanimura} 5495552Stanimura