Lines Matching refs:currency
73 throw new RuntimeException("Didn't get same instance for same currency code");
83 Currency currency = Currency.getInstance(currencyCode);
93 // very basic test: most countries have their own currency, and then
94 // their currency code is an extension of their country code.
112 Currency currency = Currency.getInstance(locale);
113 if (currency.getCurrencyCode().indexOf(locale.getCountry()) == 0) {
121 throw new RuntimeException("suspicious: not enough countries have their own currency.");
131 // check currency changes
151 // check a country code which doesn't have a currency
168 Currency currency = Currency.getInstance(locale);
169 String code = (currency != null) ? currency.getCurrencyCode() : null;
171 throw new RuntimeException("Wrong currency for " +
186 throw new RuntimeException("Wrong symbol for currency " +
214 throw new RuntimeException("Wrong number of fraction digits for currency " +
260 throw new RuntimeException("Wrong display name for currency " +