< prev index next >

test/sun/util/resources/cldr/Bug8145136.java

Print this page




   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25  /*
  26  * @test
  27  * @bug 8145136

  28  * @summary Tests CLDR 28/29 newly added feature LikelySubtags is correctly reflected in JDK.
  29  * @run main/othervm -Djava.locale.providers=CLDR Bug8145136
  30  */
  31 import java.util.Arrays;
  32 import java.util.List;
  33 import java.util.Locale;
  34 import java.util.stream.Collectors;
  35 
  36 public class Bug8145136 {
  37 
  38     public static void main(String[] args) {
  39         /* This Golden data is names of all *.xml files which contain locale
  40            specific data in CLDR 29. With newly added feature LikelySubtags,
  41            these locales should be present in output of getAvailableLocales()
  42            method.
  43          */
  44         List<String> likelySubtagsLocales = List.of("", "af-NA", "af", "af-ZA",
  45                 "agq-CM", "agq", "ak-GH", "ak", "am-ET", "am", "ar-001", "ar-AE",
  46                 "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL",
  47                 "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA",




   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25  /*
  26  * @test
  27  * @bug 8145136
  28  * @modules jdk.localedata
  29  * @summary Tests CLDR 28/29 newly added feature LikelySubtags is correctly reflected in JDK.
  30  * @run main/othervm -Djava.locale.providers=CLDR Bug8145136
  31  */
  32 import java.util.Arrays;
  33 import java.util.List;
  34 import java.util.Locale;
  35 import java.util.stream.Collectors;
  36 
  37 public class Bug8145136 {
  38 
  39     public static void main(String[] args) {
  40         /* This Golden data is names of all *.xml files which contain locale
  41            specific data in CLDR 29. With newly added feature LikelySubtags,
  42            these locales should be present in output of getAvailableLocales()
  43            method.
  44          */
  45         List<String> likelySubtagsLocales = List.of("", "af-NA", "af", "af-ZA",
  46                 "agq-CM", "agq", "ak-GH", "ak", "am-ET", "am", "ar-001", "ar-AE",
  47                 "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL",
  48                 "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA",


< prev index next >