/** * AccessingMonetaryAmountFormat using * MonetaryFormats.getAmountFormat(Locale locale), all locales * available also from java.text.DecimalFormat must be supported. */ @SpecAssertion(section = "4.4.3", id = "443-A1") @Test(description = "4.4.3 Ensures all Locales defined by DecimalFormat.getAvailableLocales() are available for " + "monetary formatting.") public void testLocalesSupported() { Locale[] jdkDecimalFormatLocales = DecimalFormat.getAvailableLocales(); for (Locale jdkDecimalFormatLocale : jdkDecimalFormatLocales) { MonetaryAmountFormat amountFormat = MonetaryFormats.getAmountFormat(jdkDecimalFormatLocale); AssertJUnit.assertNotNull(amountFormat); assertEquals(jdkDecimalFormatLocale, amountFormat.getContext().getLocale()); } }