@SpecVersion(spec="JSR 354", version="1.0.0") public class ConvertingAmountsTest extends Object
Constructor and Description |
---|
ConvertingAmountsTest() |
Modifier and Type | Method and Description |
---|---|
void |
testConversion()
Test successful conversion for possible currency pairs.
|
void |
testConversionComparedWithRate()
Compare conversions done with exchange rates provided for same currency pair.
|
void |
testNullConversion1()
Bad case: try converting from/to a null currency, ensure NullPointerException is thrown.
|
void |
testNullConversion2()
Bad case: try converting from/to a null currency, ensure NullPointerException is thrown.
|
void |
testUnsupportedConversion()
Bad case: try converting from/to an inconvertible (custom) currency, ensure CurrencyConversionException is
thrown.
|
public ConvertingAmountsTest()
@SpecAssertion(id="432-A1", section="4.3.2") public void testConversion()
Hint: you may only check for rate factory, when using a hardcoded ExchangeRateProvider, such a provider must be also implemented and registered as an SPI.
@SpecAssertion(id="432-A2", section="4.3.2") public void testConversionComparedWithRate()
@SpecAssertion(id="432-A3", section="4.3.2") public void testUnsupportedConversion()
@SpecAssertion(id="432-A4", section="4.3.2") public void testNullConversion1()
@SpecAssertion(id="432-A4", section="4.3.2") public void testNullConversion2()
Copyright © 2012-2015 JavaMoney. All Rights Reserved.