TestModifierEx.java revision 3294:9adfb22ff08f
199193Sjmallett/* 299193Sjmallett * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. 399193Sjmallett * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 499193Sjmallett * 599193Sjmallett * This code is free software; you can redistribute it and/or modify it 699193Sjmallett * under the terms of the GNU General Public License version 2 only, as 799193Sjmallett * published by the Free Software Foundation. 899193Sjmallett * 999193Sjmallett * This code is distributed in the hope that it will be useful, but WITHOUT 1099193Sjmallett * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1199193Sjmallett * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1299193Sjmallett * version 2 for more details (a copy is included in the LICENSE file that 1399193Sjmallett * accompanied this code). 1499193Sjmallett * 1599193Sjmallett * You should have received a copy of the GNU General Public License version 1699193Sjmallett * 2 along with this work; if not, write to the Free Software Foundation, 1799193Sjmallett * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1899193Sjmallett * 1999193Sjmallett * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2099193Sjmallett * or visit www.oracle.com if you need additional information or have any 2199193Sjmallett * questions. 2299193Sjmallett */ 2399193Sjmallett 2499193Sjmallett/* 2599193Sjmallett * @test 2699193Sjmallett * @summary Ensure the modifiers are correct 2799193Sjmallett * @library ../lib 2899193Sjmallett * @modules jdk.javadoc/jdk.javadoc.internal.tool 2999193Sjmallett * @build JavadocTester 3099193Sjmallett * @run main TestModifierEx 3199193Sjmallett */ 3299193Sjmallett 3399193Sjmallettpublic class TestModifierEx extends JavadocTester { 3499193Sjmallett 3599193Sjmallett public static void main(String... args) throws Exception { 3699193Sjmallett TestModifierEx tester = new TestModifierEx(); 3799193Sjmallett tester.runTests(); 3899193Sjmallett } 3999193Sjmallett 4099193Sjmallett @Test 4199193Sjmallett void test1(){ 4299193Sjmallett javadoc("-d", "out-1", 4399193Sjmallett "-sourcepath", testSrc, 4499193Sjmallett "-package", "pkg1"); 4599193Sjmallett checkExit(Exit.OK); 4699193Sjmallett checkOutput("pkg1/Abstract.html", true, 4799193Sjmallett "<pre>public abstract class <span class=\"typeNameLabel\">Abstract</span>"); 4899193Sjmallett checkOutput("pkg1/Interface.html", true, 4999193Sjmallett "<pre>interface <span class=\"typeNameLabel\">Interface</span></pre>"); 5099193Sjmallett checkOutput("pkg1/Interface.Kind.html", true, 5199193Sjmallett "<pre>public static interface <span class=\"typeNameLabel\">Interface.Kind</span></pre>"); 5299193Sjmallett checkOutput("pkg1/Enum.html", true, 5399193Sjmallett "<pre>public enum <span class=\"typeNameLabel\">Enum</span>"); 54109462Sjmallett checkOutput("pkg1/Klass.StaticEnum.html", true, 5599193Sjmallett "<pre>public static enum <span class=\"typeNameLabel\">Klass.StaticEnum</span>"); 56109462Sjmallett } 57109462Sjmallett 5899193Sjmallett} 5999193Sjmallett