test/langtools/jdk/javadoc/doclet/testSupplementary/TestSupplementary.java
changeset 53097 2e82ca64b25d
parent 47216 71c04702a3d5
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
    25  * @test
    25  * @test
    26  * @bug 4914724
    26  * @bug 4914724
    27  * @summary Test to make sure that "see" tag and "serialField" tag handle supplementary
    27  * @summary Test to make sure that "see" tag and "serialField" tag handle supplementary
    28  *    characters correctly.  This test case needs to be run in en_US locale.
    28  *    characters correctly.  This test case needs to be run in en_US locale.
    29  * @author Naoto Sato
    29  * @author Naoto Sato
    30  * @library ../lib
    30  * @library ../../lib
    31  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    32  * @build JavadocTester
    32  * @build javadoc.tester.*
    33  * @run main TestSupplementary
    33  * @run main TestSupplementary
    34  */
    34  */
    35 
    35 
    36 import java.util.Locale;
    36 import java.util.Locale;
       
    37 
       
    38 import javadoc.tester.JavadocTester;
    37 
    39 
    38 public class TestSupplementary extends JavadocTester {
    40 public class TestSupplementary extends JavadocTester {
    39 
    41 
    40     public static void main(String... args) throws Exception {
    42     public static void main(String... args) throws Exception {
    41         Locale saveLocale = Locale.getDefault();
    43         Locale saveLocale = Locale.getDefault();
    46             Locale.setDefault(saveLocale);
    48             Locale.setDefault(saveLocale);
    47         }
    49         }
    48     }
    50     }
    49 
    51 
    50     @Test
    52     @Test
    51     void test() {
    53     public void test() {
    52         javadoc("-locale", "en_US",
    54         javadoc("-locale", "en_US",
    53                 "-d", "out",
    55                 "-d", "out",
    54                 testSrc("C.java"));
    56                 testSrc("C.java"));
    55         checkExit(Exit.ERROR);
    57         checkExit(Exit.ERROR);
    56 
    58