jdk/test/java/util/PluggableLocale/CurrencyNameProviderTest.java
changeset 10138 b7572da25d15
parent 5506 202f599c92aa
child 13583 dc0017b1a452
equal deleted inserted replaced
10137:d92637d3d673 10138:b7572da25d15
     1 /*
     1 /*
     2  * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 2011, 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.
    30 import sun.util.resources.*;
    30 import sun.util.resources.*;
    31 
    31 
    32 public class CurrencyNameProviderTest extends ProviderTest {
    32 public class CurrencyNameProviderTest extends ProviderTest {
    33 
    33 
    34     public static void main(String[] s) {
    34     public static void main(String[] s) {
    35         new CurrencyNameProviderTest();
    35         Locale reservedLocale = Locale.getDefault();
       
    36         try {
       
    37             new CurrencyNameProviderTest();
       
    38         } finally {
       
    39             // restore the reserved locale
       
    40             Locale.setDefault(reservedLocale);
       
    41         }
    36     }
    42     }
    37 
    43 
    38     CurrencyNameProviderTest() {
    44     CurrencyNameProviderTest() {
    39         test1();
    45         test1();
    40         test2();
    46         test2();