use of javax.money.format.AmountFormatQuery in project jsr354-ri-bp by JavaMoney.
the class MonetaryFormatsTest method testFormat_EUR_fr_FR.
@Test
@Ignore
public void testFormat_EUR_fr_FR() {
AmountFormatQuery formatQuery = AmountFormatQueryBuilder.of(FRANCE).set(CODE).build();
MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(formatQuery);
assertMoneyFormat(format, Money.of(123.01, "EUR"), "123,01 EUR");
assertMoneyFormat(format, Money.of(14000.12, "EUR"), "14 000,12 EUR");
}
use of javax.money.format.AmountFormatQuery in project jsr354-ri-bp by JavaMoney.
the class MonetaryFormatsTest method testParse_DKK_da.
@Test
public void testParse_DKK_da() {
AmountFormatQuery formatQuery = AmountFormatQueryBuilder.of(DANISH).set(CODE).build();
MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(formatQuery);
// assertMoneyParse(format, "123 DKK", 123.0, "DKK");
assertMoneyParse(format, "DKK 123,01", 123.01, "DKK");
assertMoneyParse(format, "DKK 14.000,12", 14000.12, "DKK");
// assertMoneyParse(format, "14.000,12\u00A0DKK", 14000.12, "DKK");
}
use of javax.money.format.AmountFormatQuery in project jsr354-ri-bp by JavaMoney.
the class MonetaryFormatsTest method testParse_BGN_bg_BG.
@Test
public void testParse_BGN_bg_BG() {
AmountFormatQuery formatQuery = AmountFormatQueryBuilder.of(BULGARIA).set(CODE).build();
MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(formatQuery);
assertMoneyParse(format, "123 BGN", 123.0, "BGN");
assertMoneyParse(format, "123,01 BGN", 123.01, "BGN");
// assertMoneyParse(format, "14 000,12 BGN", 14000.12, "BGN");
// assertMoneyParse(format, "14\u00A0000,12\u00A0BGN", 14000.12, "BGN");
}
use of javax.money.format.AmountFormatQuery in project jsr354-ri by JavaMoney.
the class MonetaryFormatsTest method testFormat_EUR_fr_FR.
@Test
public void testFormat_EUR_fr_FR() {
AmountFormatQuery formatQuery = AmountFormatQueryBuilder.of(FRANCE).set(CODE).build();
MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(formatQuery);
assertMoneyFormat(format, Money.of(123.01, "EUR"), "123,01 EUR");
assertMoneyFormat(format, Money.of(14000.12, "EUR"), "14 000,12 EUR");
}
use of javax.money.format.AmountFormatQuery in project jsr354-ri by JavaMoney.
the class MonetaryFormatsTest method testFormat_EUR_de_DE.
@Test
public void testFormat_EUR_de_DE() {
AmountFormatQuery formatQuery = AmountFormatQueryBuilder.of(GERMANY).set(CODE).build();
MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(formatQuery);
assertMoneyFormat(format, Money.of(123.01, "EUR"), "123,01 EUR");
assertMoneyFormat(format, Money.of(14000.12, "EUR"), "14.000,12 EUR");
}
Aggregations