@SpecVersion(spec="JSR 354",
version="1.0.0")
public class FormattingMonetaryAmountsTest
extends Object
| Constructor and Description |
|---|
FormattingMonetaryAmountsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAmountStyleOf()
Test MonetaryFormats.getAvailableLocales, all locales available also from java.text.DecimalFormat must be
supported (using AmountFormatContext.of(Locale)), more locales are possible.
|
void |
testFormattingIsIndependentOfImplementation()
Print several amounts, created using the default factory, but
also a test instance, provided by the TCK, to ensure no
implementation
dependencies on the implementation.
|
void |
testGetAmountFormat()
AccessingMonetaryAmountFormat using
MonetaryFormats.getAmountFormat(AmountFormatContext style), all locales
available also from java.text.DecimalFormat must be supported
(using AmountFormatContext.of(Locale)).
|
void |
testGetAvailableLocales()
Test MonetaryFormats.getAvailableLocales, all locales available also from java.text.DecimalFormat must be
supported (using AmountFormatContext.of(Locale)), more locales are possible.
|
void |
testLocalesSupported()
AccessingMonetaryAmountFormat using
MonetaryFormats.getAmountFormat(Locale locale), all locales
available also from java.text.DecimalFormat must be supported.
|
void |
testNoDepOnAmountImplementation()
Format several amounts, created using the default factory,
but
also a test instance, provided by the TCK, to ensure no
implementation
dependencies on the implementation.
|
void |
testParseDifferentStyles()
Get/set different amount styles (especially patterns, group
sizes, group characters) and compare results with results as from
RI.
|
void |
testParseIsIndependentOfImplementation()
Parse back several amounts, input created using the
formatting
from 'Format_formatAmounts'.
|
void |
testParseWithDifferentCurrencies()
Get/set default currency, try to parse patterns without
currency information.
|
public FormattingMonetaryAmountsTest()
@SpecAssertion(section="4.4.1",
id="441-A1")
public void testNoDepOnAmountImplementation()
@SpecAssertion(section="4.4.1",
id="441-A2")
public void testFormattingIsIndependentOfImplementation()
@SpecAssertion(section="4.4.1",
id="441-A3")
public void testParseIsIndependentOfImplementation()
@SpecAssertion(section="4.4.2",
id="442-A1")
public void testParseDifferentStyles()
@SpecAssertion(section="4.4.1",
id="441-A4")
public void testParseWithDifferentCurrencies()
@SpecAssertion(section="4.4.3",
id="443-A1")
public void testLocalesSupported()
@SpecAssertion(section="4.4.3",
id="443-A2")
public void testGetAmountFormat()
@SpecAssertion(section="4.4.3",
id="443-A3")
public void testGetAvailableLocales()
@SpecAssertion(section="4.4.3",
id="443-A3")
public void testAmountStyleOf()
Copyright © 2012-2015 JavaMoney. All Rights Reserved.