@Test public void testGetProvidedCurrency1() throws Exception { for (String country : Locale.getISOCountries()) { Locale locale = new Locale("", country); try { Currency.getInstance(locale); } catch (Exception e) { continue; } assertNotNull(basics.getProvidedCurrency(locale)); } }
public CurrencyUnit getProvidedCurrency(String currencyCode){ return Monetary.getCurrency(currencyCode); }
Basics { public CurrencyUnit getProvidedCurrency(String currencyCode){ return Monetary.getCurrency(currencyCode); } }
Basics { public CurrencyUnit getProvidedCurrency(String currencyCode){ return Monetary.getCurrency(currencyCode); }  }
Basics { public CurrencyUnit getProvidedCurrency(String currencyCode){ return Monetary.getCurrency(currencyCode); }  CurrencyUnit getProvidedCurrency(String currencyCode); CurrencyUnit getProvidedCurrency(Locale locale); CurrencyUnit buildCustomCurrency(String currencyCode, int numericCode, int defaultFractionUnits); CurrencyUnit buildAndRegisterCustomCurrency(String currencyCode, int numericCode, int defaultFractionUnits); Collection<Class<? extends MonetaryAmount>> getMonetaryAmountTypes(); Class<? extends MonetaryAmount> getDefaultMonetaryAmountType(); MonetaryAmountFactory<T> getMoneyFactory(Class<T> moneyType); MonetaryAmount getMoney(Number number, String currencyCode); MonetaryAmount convertAmount(MonetaryAmount amount, BigDecimal bd, String currencyCode); MonetaryAmount convertAmount(MonetaryAmount amount, int scale, int precision, MathContext context); MonetaryAmount getMoneyWithContext(Number number, String currencyCode, MonetaryContext context); MonetaryAmount getMoneyWithSpecificCapabilities(Number number, String currencyCode); }
Basics { public CurrencyUnit getProvidedCurrency(String currencyCode){ return Monetary.getCurrency(currencyCode); }  CurrencyUnit getProvidedCurrency(String currencyCode); CurrencyUnit getProvidedCurrency(Locale locale); CurrencyUnit buildCustomCurrency(String currencyCode, int numericCode, int defaultFractionUnits); CurrencyUnit buildAndRegisterCustomCurrency(String currencyCode, int numericCode, int defaultFractionUnits); Collection<Class<? extends MonetaryAmount>> getMonetaryAmountTypes(); Class<? extends MonetaryAmount> getDefaultMonetaryAmountType(); MonetaryAmountFactory<T> getMoneyFactory(Class<T> moneyType); MonetaryAmount getMoney(Number number, String currencyCode); MonetaryAmount convertAmount(MonetaryAmount amount, BigDecimal bd, String currencyCode); MonetaryAmount convertAmount(MonetaryAmount amount, int scale, int precision, MathContext context); MonetaryAmount getMoneyWithContext(Number number, String currencyCode, MonetaryContext context); MonetaryAmount getMoneyWithSpecificCapabilities(Number number, String currencyCode);  }