Currency implements ObjectIdentifiable, UniqueIdentifiable, Comparable<Currency>, Serializable { public static Currency parse(String currencyCode) { ArgumentChecker.notNull(currencyCode, "currencyCode"); return of(currencyCode.toUpperCase(Locale.ENGLISH)); } private  Currency(String currencyCode); static Set<Currency> getAvailableCurrencies(); static Currency of(java.util.Currency currency); @FromString static Currency of(String currencyCode); static Currency parse(String currencyCode); @ToString String getCode(); @Override ObjectId getObjectId(); @Override UniqueId getUniqueId(); java.util.Currency toCurrency(); @Override int compareTo(Currency other); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final String OBJECT_SCHEME; static final Currency USD; static final Currency EUR; static final Currency JPY; static final Currency GBP; static final Currency CHF; static final Currency AUD; static final Currency CAD; static final Currency NZD; static final Currency DKK; static final Currency DEM; static final Currency CZK; static final Currency SEK; static final Currency SKK; static final Currency ITL; static final Currency HUF; static final Currency FRF; static final Currency NOK; static final Currency HKD; static final Currency BRL; static final Currency ZAR; static final Currency PLN; static final Currency SGD; static final Currency MXN; }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_parse_String_empty() { Currency.parse(""); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_parse_String_tooShort() { Currency.parse("AB"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_parse_String_tooLong() { Currency.parse("ABCD"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_parse_String_nullString() { Currency.parse((String) null); }