test/langtools/jdk/javadoc/doclet/testDocEncoding/TestDocEncoding.java
changeset 53097 2e82ca64b25d
parent 47328 d18df41954ba
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    29  * @test
    29  * @test
    30  * @bug      8000743
    30  * @bug      8000743
    31  * @summary  Run tests on -docencoding to see if the value is
    31  * @summary  Run tests on -docencoding to see if the value is
    32              used for stylesheet as well.
    32              used for stylesheet as well.
    33  * @author   jayashree viswanathan
    33  * @author   jayashree viswanathan
    34  * @library  ../lib
    34  * @library  ../../lib
    35  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    35  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    36  * @build    JavadocTester
    36  * @build    javadoc.tester.*
    37  * @run main TestDocEncoding
    37  * @run main TestDocEncoding
    38  */
    38  */
    39 
    39 
    40 import java.nio.charset.Charset;
    40 import java.nio.charset.Charset;
       
    41 
       
    42 import javadoc.tester.JavadocTester;
    41 
    43 
    42 public class TestDocEncoding extends JavadocTester {
    44 public class TestDocEncoding extends JavadocTester {
    43 
    45 
    44     public static void main(String... args) throws Exception {
    46     public static void main(String... args) throws Exception {
    45         TestDocEncoding tester = new TestDocEncoding();
    47         TestDocEncoding tester = new TestDocEncoding();
    46         tester.runTests();
    48         tester.runTests();
    47     }
    49     }
    48 
    50 
    49     @Test
    51     @Test
    50     void test() {
    52     public void test() {
    51         javadoc("-d", "out",
    53         javadoc("-d", "out",
    52                 "-docencoding", "Cp930",
    54                 "-docencoding", "Cp930",
    53                 "-sourcepath", testSrc,
    55                 "-sourcepath", testSrc,
    54                 "-notimestamp",
    56                 "-notimestamp",
    55                 "pkg");
    57                 "pkg");