@SpecVersion(spec="JSR 354", version="1.0.0") public class CreatingMonetaryAmountsTest extends Object
Constructor and Description |
---|
CreatingMonetaryAmountsTest() |
Modifier and Type | Method and Description |
---|---|
void |
testAccessToMonetaryAmountFactory()
Access a MonetaryAmountFactory for each registered type.
|
void |
testMonetaryAmountFactoryCreateAmountsWithInvalidCurrency()
For each MonetaryAmount Factory: Bad Case: Create zero amounts
from a factory with an invalid currency.
|
void |
testMonetaryAmountFactoryCreateAmountsWithInvalidMonetaryContext()
For each MonetaryAmount Factory: Bad Case: Create zero amounts
from a factory with an invalid contexts.
|
void |
testMonetaryAmountFactoryCreateNegativeInvalidContext_BadCase()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an invalid currency.
|
void |
testMonetaryAmountFactoryCreateNegativeInvalidCurrency_BadCase()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an invalid currency.
|
void |
testMonetaryAmountFactoryCreateNegativeNoCurrency_BadCase()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an no currency.
|
void |
testMonetaryAmountFactoryCreatePositiveAmountsWitCurrencies()
For each MonetaryAmount Factory: Create positive amounts from
a factory with currencies.
|
void |
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts()
For each MonetaryAmount Factory: Create positive amounts from
a factory with monetary contexts.
|
void |
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts2()
For each MonetaryAmount Factory: Create positive amounts from
a factory with monetary contexts.
|
void |
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts3()
For each MonetaryAmount Factory: Create positive amounts from
a factory with monetary contexts.
|
void |
testMonetaryAmountFactoryCreatePositiveAmountsWithInvalidNumber()
For each MonetaryAmount Factory: Bad Case: Create positive
amounts from a factory with an invalid numeric value (exceeding max
MonetaryContext).
|
void |
testMonetaryAmountFactoryCreatePositiveInvalidContext_BadCase()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an invalid currency.
|
void |
testMonetaryAmountFactoryCreatePositiveInvalidCurrency_BadCase()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an invalid currency.
|
void |
testMonetaryAmountFactoryCreatePositiveNoCurrency_BadCase()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an no currency.
|
void |
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts()
For each MonetaryAmount Factory: Create zero amounts from a
factory with monetary contexts.
|
void |
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts2()
For each MonetaryAmount Factory: Create zero amounts from a
factory with monetary contexts.
|
void |
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts3()
For each MonetaryAmount Factory: Create zero amounts from a
factory with monetary contexts.
|
void |
testMonetaryAmountFactoryCreateZeroAmountsWithDiffCurrencies()
For each MonetaryAmountFactory: Create zero amounts from a
factory with currencies.
|
void |
testMonetaryAmountFactoryMinMaxCapabilities_Compare()
Checks if capabilities of default MonetaryContext are less than Max MonetaryContext.
|
void |
testMonetaryAmountFactoryMinMaxCapabilities()
For each MonetaryAmountFactory: Check if capabilities of default MonetaryContext are less, or equal
than Max
MonetaryContext.
|
void |
testMonetaryAmountFactoryNegativePositiveAmountsWitCurrencies()
For each MonetaryAmount Factory: Create negative amounts from
a factory with currencies.
|
void |
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts()
For each MonetaryAmount Factory: Create negative amounts from
a factory with monetary contexts.
|
void |
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts2()
For each MonetaryAmount Factory: Create negative amounts from
a factory with monetary contexts.
|
void |
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts3()
For each MonetaryAmount Factory: Create negative amounts from
a factory with monetary contexts.
|
void |
testMonetaryAmountFactoryNegativePositiveAmountsWithInvalidNumber()
For each MonetaryAmount Factory: Bad Case: Create negative
amounts from a factory with an invalid numeric value (exceeding max
MonetaryContext).
|
void |
testMonetaryAmountFactoryReturnsCorrectType()
For each MonetaryAmountFactory: Check if getAmountType returns the correct type.
|
void |
testMonetaryAmountTypes_Available()
For each MonetaryAmount Factory: Bad Case: Create negative amounts from a factory with an invalid currency.
|
public CreatingMonetaryAmountsTest()
@SpecAssertion(section="4.2.6", id="426-A1") public void testAccessToMonetaryAmountFactory()
@SpecAssertion(section="4.2.6", id="426-A2") public void testMonetaryAmountFactoryReturnsCorrectType()
@SpecAssertion(section="4.2.6", id="426-A3") public void testMonetaryAmountFactoryMinMaxCapabilities()
@SpecAssertion(section="4.2.6", id="426-A4") public void testMonetaryAmountFactoryMinMaxCapabilities_Compare()
@SpecAssertion(section="4.2.6", id="426-B1") public void testMonetaryAmountFactoryCreateZeroAmountsWithDiffCurrencies()
@SpecAssertion(section="4.2.6", id="426-B2") public void testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts()
@SpecAssertion(section="4.2.6", id="426-B2") public void testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts2()
@SpecAssertion(section="4.2.6", id="426-B2") public void testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts3()
@SpecAssertion(section="4.2.6", id="426-B3") public void testMonetaryAmountFactoryCreateAmountsWithInvalidCurrency()
@SpecAssertion(section="4.2.6", id="426-B4") public void testMonetaryAmountFactoryCreateAmountsWithInvalidMonetaryContext()
@SpecAssertion(section="4.2.6", id="426-C1") public void testMonetaryAmountFactoryCreatePositiveAmountsWitCurrencies()
@SpecAssertion(section="4.2.6", id="426-C2") public void testMonetaryAmountFactoryCreatePositiveAmountsWithContexts()
@SpecAssertion(section="4.2.6", id="426-C2") public void testMonetaryAmountFactoryCreatePositiveAmountsWithContexts2()
@SpecAssertion(section="4.2.6", id="426-C2") public void testMonetaryAmountFactoryCreatePositiveAmountsWithContexts3()
@SpecAssertion(section="4.2.6", id="426-C3") public void testMonetaryAmountFactoryCreatePositiveAmountsWithInvalidNumber()
@SpecAssertion(section="4.2.6", id="426-C4") public void testMonetaryAmountFactoryCreatePositiveNoCurrency_BadCase()
@SpecAssertion(section="4.2.6", id="426-C4") public void testMonetaryAmountFactoryCreatePositiveInvalidCurrency_BadCase()
@SpecAssertion(section="4.2.6", id="426-C5") public void testMonetaryAmountFactoryCreatePositiveInvalidContext_BadCase()
@SpecAssertion(section="4.2.6", id="426-D1") public void testMonetaryAmountFactoryNegativePositiveAmountsWitCurrencies()
@SpecAssertion(section="4.2.6", id="426-D2") public void testMonetaryAmountFactoryNegativePositiveAmountsWithContexts()
@SpecAssertion(section="4.2.6", id="426-D2") public void testMonetaryAmountFactoryNegativePositiveAmountsWithContexts2()
@SpecAssertion(section="4.2.6", id="426-D2") public void testMonetaryAmountFactoryNegativePositiveAmountsWithContexts3()
@SpecAssertion(section="4.2.6", id="426-D3") public void testMonetaryAmountFactoryNegativePositiveAmountsWithInvalidNumber()
@SpecAssertion(section="4.2.6", id="426-D4") public void testMonetaryAmountFactoryCreateNegativeNoCurrency_BadCase()
@SpecAssertion(section="4.2.6", id="426-D4") public void testMonetaryAmountFactoryCreateNegativeInvalidCurrency_BadCase()
@SpecAssertion(section="4.2.6", id="426-D5") public void testMonetaryAmountFactoryCreateNegativeInvalidContext_BadCase()
@SpecAssertion(section="4.2.7", id="427-B1") public void testMonetaryAmountTypes_Available()
Copyright © 2012-2015 JavaMoney. All Rights Reserved.