private static final String CURRENCY_SYMBOL = "\uFFE5";
private static final int FRACTION_DIGITS = 0;
public void test(TestHarness harness)
{
Currency currency;
/* Set default Locale for the JVM */
Locale.setDefault(TEST_LOCALE);
/* Get an instance of the currency */
currency = Currency.getInstance(TEST_LOCALE);
/* Check for the correct currency code */
harness.check(currency.getCurrencyCode(),ISO4217_CODE, "ISO 4217 currency code retrieval check (" +
currency.getCurrencyCode() + ").");
/* Check for the correct currency symbol */
harness.check(currency.getSymbol(), CURRENCY_SYMBOL, "Currency symbol retrieval check (" +
currency.getSymbol() + ").");
/* Check for the correct fraction digits */
harness.check(currency.getDefaultFractionDigits(), FRACTION_DIGITS, "Currency fraction digits retrieval check (" +
currency.getDefaultFractionDigits() + ").");
/* Check for the correct currency code from toString()*/
harness.check(currency.toString(),ISO4217_CODE, "ISO 4217 currency code retrieval check (" + currency.toString() + ").");
}