test/jdk/java/util/Currency/ValidateISO4217.java
changeset 48537 0140779fc556
parent 47216 71c04702a3d5
child 50422 04b3e0cc53bb
equal deleted inserted replaced
48536:d7995ed9627d 48537:0140779fc556
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 /*
    23 /*
    24  * @test
    24  * @test
    25  * @bug 4691089 4819436 4942982 5104960 6544471 6627549 7066203 7195759
    25  * @bug 4691089 4819436 4942982 5104960 6544471 6627549 7066203 7195759
    26  *      8039317 8074350 8074351 8145952
    26  *      8039317 8074350 8074351 8145952 8187946
    27  * @summary Validate ISO 4217 data for Currency class.
    27  * @summary Validate ISO 4217 data for Currency class.
    28  * @modules java.base/java.util:open
    28  * @modules java.base/java.util:open
    29  *          jdk.localedata
    29  *          jdk.localedata
    30  */
    30  */
    31 
    31 
    93         {"MF", "EUR", "978", "2"},      // Saint Martin
    93         {"MF", "EUR", "978", "2"},      // Saint Martin
    94     };
    94     };
    95 
    95 
    96     /* Codes that are obsolete, do not have related country */
    96     /* Codes that are obsolete, do not have related country */
    97     static final String otherCodes =
    97     static final String otherCodes =
    98         "ADP-AFA-ATS-AYM-AZM-BEF-BGL-BOV-BYB-BYR-CHE-CHW-CLF-COU-CUC-CYP-DEM-EEK-ESP-FIM-FRF-GHC-GRD-GWP-IEP-ITL-LUF-MGF-MTL-MXV-MZM-NLG-PTE-ROL-RUR-SDD-SIT-SKK-SRG-TMM-TPE-TRL-VEF-UYI-USN-USS-VEB-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-YUM-ZMK-ZWD-ZWN-ZWR";
    98         "ADP-AFA-ATS-AYM-AZM-BEF-BGL-BOV-BYB-BYR-CHE-CHW-CLF-COU-CUC-CYP-"
       
    99         + "DEM-EEK-ESP-FIM-FRF-GHC-GRD-GWP-IEP-ITL-LUF-MGF-MTL-MXV-MZM-NLG-"
       
   100         + "PTE-ROL-RUR-SDD-SIT-SKK-SRG-STD-TMM-TPE-TRL-VEF-UYI-USN-USS-VEB-"
       
   101         + "XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-"
       
   102         + "YUM-ZMK-ZWD-ZWN-ZWR";
    99 
   103 
   100     static boolean err = false;
   104     static boolean err = false;
   101 
   105 
   102     static Set<Currency> testCurrencies = new HashSet<Currency>();
   106     static Set<Currency> testCurrencies = new HashSet<Currency>();
   103 
   107