Test results
1 suite
org.javamoney.tck.tests.conversion.MonetaryConversionsTest
testConversionsAreAvailable (4.3.1 Access Conversion to term currency code XXX for all providers that support according conversion, ifavailable a non-null CurrencyConversion must be provided.)
testConversionsAreAvailableWithQuery (4.3.1 Access Conversion by query to term currency XXX for all providers that support according conversion, ifavailable a non-null CurrencyConversion must be provided.)
testDefaultConversion (4.3.1 Access and test conversion using the default provider chain.)
testDefaultProviderChainIsDefined (4.3.1 Access and test the default conversion provider chain.)
testDefaultProviderChainIsDefinedDefault (4.3.1 Access and test the default conversion provider chain, by accessing a defaultCurrencyConversion for term CurrencyUnit CHF.)
testDefaultProviderChainIsDefinedDefault2 (4.3.1 Access and test the default conversion provider chain, by accessing a defaultCurrencyConversion for term currency code CHF.)
testDefaultProviderChainIsDefinedDefaultWithContext (4.3.1 Access and test the default conversion provider chain, by accessing a defaultCurrencyConversion for ConversionQuery.)
testProviderMetadata (4.3.1 Test if all ExchangeRateProvider instances returns valid ProviderContext.)
testProviderMetadata2 (4.3.1 Test if all CurrencyConversion instances returns valid ConversionContext, accessed by currency code.)
testProviderMetadata2WithContext (4.3.1 Test if all CurrencyConversion instances returns valid ConversionContext, accessed by ConversionQuery/currency code.)
testProviderMetadata3 (4.3.1 Test if all CurrencyConversion instances returns valid ConversionContext, accessed by CurrencyUnit.)
testProviderMetadata3WithContext (4.3.1 Test if all CurrencyConversion instances returns valid ConversionContext, accessed by ConversionQuery/CurrencyUnit.)
testProvidersAvailable (4.3.1 Ensure at least one conversion provider is available, TestRateProvider must be present.)
testUseInvalidProvider (4.3.1 Bad case: Access invalid ExchangeRateProvider, expect MonetaryException thrown, using default provider chain.)
testUseInvalidProviderWithinChain (4.3.1 Bad case: Access invalid ExchangeRateProvider, expect MonetaryException thrown, using explicit provider.)
org.javamoney.tck.tests.conversion.ConvertingAmountsTest
testConversion (4.3.2 Test successful conversion for CHF -> FOO, using TestRateProvider.)
testConversionComparedWithRate (4.3.2 Test correct ExchangeRate is returned for CHF -> FOO, using TestRateProvider.)
testNullConversion1 (4.3.2 Bad case: Access CurrencyConversion with a CurrencyUnit==null, ensure NullPointerException is thrown.)
testNullConversion2 (4.3.2 Bad case: Access CurrencyConversion with a currency code==null, ensure NullPointerException is thrown.)
testUnsupportedConversion (4.3.2 Bad case: Try CurrencyConversion to an inconvertible (custom) currency (FOOANY), ensure CurrencyConversionException is thrown.)
org.javamoney.tck.tests.ModellingCurrenciesTest
testCurrencyClassesComparable (4.2.1 Ensure registered CurrencyUnit classes are Comparable.)
testCurrencyClassesEqualsHashcode (4.2.1 Ensure registered CurrencyUnit classes implement hashCode.)
testEnforce3LetterCode4ISO (4.2.1 Test currencies provided have correct ISO 3-letter currency codes.)
testEnsureCurrencyUnit (4.2.1 Ensure TCK has CurrencyUnit classes configured.)
testEqualISOCurrencies (4.2.1 Test currencies provided equal at least currencies from java.util.Currency.)
testISOCodes (4.2.1 Test currencies provided have correct default fraction digits and numeric code.)
testImplementsEquals (4.2.1 Ensure registered CurrencyUnit classes implement equals.)
testImplementsSerializable (4.2.1 Ensure registered CurrencyUnit classes are serializable.)
testIsImmutable (4.2.1 Ensure registered CurrencyUnit classes are immutable.)
org.javamoney.tck.tests.FunctionalExtensionPointsTest
testOperatorReturnTypeEqualsParameter (4.2.4 Ensures the result of all operators under test is of the same class as the input.)
org.javamoney.tck.tests.ModellingMonetaryAmountsTest
testAbsolute (4.2.2 For each amount class, test absolute().)
testAddMixedFractions (4.2.2 For each amount class, check m1.add(m2), m1, m2 = mixed fractions.)
testAddMixedIntegers (4.2.2 For each amount class, check m1.add(m2), m1, m2 = mixed ints.)
testAddNegativeIntegers (4.2.2 For each amount class, check m1.add(m2), m1 <0, m2<0.)
testAddPositiveFractions (4.2.2 For each amount class, check m1.add(m2), m2 is fraction.)
testAddPositiveIntegers (4.2.2 For each amount class, check m1.add(m2), m1 >0, m2>0.)
testAdd_ExceedsCapabilities (4.2.2 For each amount class, ensure ArithemticException is thrown when adding exceeding values.)
testAdd_IncompatibleCurrencies (4.2.2 For each amount class, ensure currency compatibility is working.)
testAdd_Null (4.2.2 For each amount class, ensure NullPointerException is thrown when calling m.add(null).)
testAdd_Zero (4.2.2 For each amount class, ensure m2 = m1,add(0) -> m1==m2.)
testCurrencyCode (4.2.2 Ensure amount can be created with all default currencies.)
testDivide (4.2.2 For each amount class, ensure correct division.)
testDivideAndRemainder (4.2.2 For each amount class, ensure correct divideAndRemainder().)
testDivideAndRemainderDoubleNEGATIVE_INFINITY (4.2.2 For each amount class, ensure divideAndRemainder(Double.NEGATIVE_INFINITY) returns ZERO amount.)
testDivideAndRemainderDoubleNaN (4.2.2 For each amount class, ensure divideAndRemainder(Double.NaN) throws a ArithmeticException.)
testDivideAndRemainderDoublePOSITIVE_INFINITY (4.2.2 For each amount class, ensure divideAndRemainder(Double.POSITIVE_INFINITY) returns ZERO amount.)
testDivideAndRemainderNull (4.2.2 For each amount class, ensure divideAndRemainder(null) throws a NullPointerException.)
testDivideAndRemainderOne (4.2.2 For each amount class, ensure divideAndRemainder(1) returns same instance.)
testDivideAndRemainderZero (4.2.2 For each amount class, ensure correct divideAndRemainderZero().)
testDivideDoubleNEGATIVE_INFINITY (4.2.2 For each amount class, ensure divide(Double.NEGATIVE_INFINITY) return ZERO amount.)
testDivideDoubleNaN (4.2.2 For each amount class, ensure divide(Double.NaN) throws ArithmeticException.)
testDivideDoublePOSITIVE_INFINITY (4.2.2 For each amount class, ensure divide(Double.POSITIVE_INFINITY) return ZERO amount.)
testDivideNull (4.2.2 For each amount class, ensure divide by null throws NullPointerException.)
testDivideOne (4.2.2 For each amount class, ensure divide 1 returns same instance.)
testDivideToIntegralValue (4.2.2 For each amount class, ensure correct division with int values.)
testDivideZero (4.2.2 For each amount class, ensure divide(0) throws ArithmeticException.)
testEnsureMonetaryAmount (4.2.2 Ensure Monetary.getAmountTypes() is not null and not empty.)
testGetMonetaryContext (4.2.2 Ensure amounts created return correct getContext().)
testGetNumber (4.2.2 Ensure amounts created return correct getNumber().)
testImmutable (4.2.2 For each amount class, test iis immutable.)
testImplementComparable (4.2.2 For each amount class, test is Comparable.)
testImplementsEquals (4.2.2 For each amount class, test implements equals().)
testImplementsHashCode (4.2.2 For each amount class, test implements hashCode().)
testIsNegative (4.2.2 For each amount class, test isNegative().)
testIsNegativeOrZero (4.2.2 For each amount class, test isNegativeOrZero().)
testIsPositive (4.2.2 For each amount class, test isPositive().)
testIsPositiveOrZero (4.2.2 For each amount class, test isPositiveOrZero().)
testIsZero (4.2.2 For each amount class, test isZero().)
testIsZeroAdvanced (4.2.2 For each amount class, test isZero(), advanced.)
testMonetaryAmountFactories (4.2.2 For each amount class, access factory and of amounts.)
testMonetaryAmountFactories_CreateWithCurrencies (4.2.2 For each amount class, check multiple instances are not equal.)
testMonetaryAmountFactories_CreateWithMonetaryContext (4.2.2 For each amount class, check new amounts with explcit MonetaryContext.)
testMonetaryAmountFactories_CreateWithMonetaryContextNumberAndCurrency (4.2.2 For each amount class, check new amounts are not equal for different currencies and contexts.)
testMonetaryAmountFactories_InstancesMustBeEqual (4.2.2 For each amount class, access factory and of amounts, ensure amounts are equal if theyshould.)
testMonetaryAmountFactories_InstantesMustBeNotEqual (4.2.2 For each amount class, check new amounts are not equal.)
testMonetaryAmount_isEqualTo (4.2.2 For each amount class, check isEqualTo().)
testMonetaryAmount_isEqualToRegardlessMonetaryContext (4.2.2 For each amount class, check isEqualTo(), regardless different MonetaryContext instances.)
testMonetaryAmount_isEqualToRegardlessType (4.2.2 For each amount class, check isEqualTo(), regardless implementation type.)
testMonetaryAmount_isGreaterThan (4.2.2 For each amount class, check isGreaterThan().)
testMonetaryAmount_isGreaterThanOrEquals (4.2.2 For each amount class, check isGreaterThanOrEquals().)
testMonetaryAmount_isLessThan (4.2.2 For each amount class, check isLessThan().)
testMonetaryAmount_isLessThanOrEqualTo (4.2.2 For each amount class, check isLessThanOrEqualTo().)
testMultiplyExceedsCapabilities (4.2.2 For each amount class, ensure multiplication with exceeding values throws ArithmeticException.)
testMultiplyNull (4.2.2 For each amount class, ensure multiplication of null throws NullPointerException.)
testMultiplyOne (4.2.2 For each amount class, ensure multiplication by one returns same instance.)
testMultiply_Decimals (4.2.2 For each amount class, ensure correct multiplication of decimal values.)
testMultiply_DoubleNEGATIVE_INFINITY (4.2.2 For each amount class, ensure multiplication of Double.NEGATIVE_INFINITY throws ArithmeticException.)
testMultiply_DoubleNaN (4.2.2 For each amount class, ensure multiplication of Double.NaN throws ArithmeticException.)
testMultiply_DoublePOSITIVE_INFINITY (4.2.2 For each amount class, ensure multiplication of Double.POSITIVE_INFINITY throws ArithmeticException.)
testMultiply_Integral (4.2.2 For each amount class, ensure correct multiplication of int values.)
testNegate (4.2.2 For each amount class, test negate().)
testQuery (4.2.2 For each amount class, test query().)
testQueryInvalidQuery (4.2.2 For each amount class, test query(), MonetaryQuery throws exception, MonetaryException expected.)
testQueryNull (4.2.2 For each amount class, test query(null), NullPointerException expected.)
testRemainder (4.2.2 For each amount class, ensure correct results for remainder.)
testRemainderNull (4.2.2 For each amount class, ensure remainder(null), throws NullPointerException.)
testRemainderZero_Double (4.2.2 For each amount class, ensure remainder(0), double, throws ArithmeticException.)
testRemainderZero_Long (4.2.2 For each amount class, ensure remainder(0), long, throws ArithmeticException.)
testRemainderZero_Number (4.2.2 For each amount class, ensure remainder(0), Number, throws ArithmeticException.)
testRemainder_DoubleNEGATIVE_INFINITY (4.2.2 For each amount class, ensure remainder(Double.NEGATIVE_INFINITY), throws ArithmeticException.)
testRemainder_DoubleNaN (4.2.2 For each amount class, ensure remainder(Double.NaN), throws ArithmeticException.)
testRemainder_DoublePOSITIVE_INFINITY (4.2.2 For each amount class, ensure remainder(Double.POSITIVE_INFINITY), throws ArithmeticException.)
testScaleByPowerOfTen (4.2.2 For each amount class, ensure scaleByPowerOfTen(1) returns correct results.)
testSignum (4.2.2 For each amount class, test signum().)
testSubtractMixedFractions (4.2.2 For each amount class, ensure correct subtraction of mixed fractions.)
testSubtractMixedIntegers (4.2.2 For each amount class, ensure correct subtraction of mixed ints.)
testSubtractNegativeIntegers (4.2.2 For each amount class, ensure correct subtraction of negative ints.)
testSubtractPositiveFractions (4.2.2 For each amount class, ensure correct subtraction of positive fractions.)
testSubtractPositiveIntegers (4.2.2 For each amount class, ensure correct subtraction of positive ints.)
testSubtract_ExceedsCapabilities (4.2.2 For each amount class, ensure subtraction with exceeding capabilities throws ArithmeticException.)
testSubtract_IncompatibleCurrencies (4.2.2 For each amount class, ensure subtraction with invalid currency throws MonetaryException.)
testSubtract_Null (4.2.2 For each amount class, ensure subtraction with null throws NullPointerException.)
testSubtract_Zero (4.2.2 For each amount class, ensure subtraction of 0 returns same instance.)
testWith (4.2.2 For each amount class, test with().)
testWith4ProvidedOperators (4.2.2 For each amount class, test with().)
testWithInvalidOperator (4.2.2 Bad case: For each amount class, test with(), operator throws exception.)
testWithNull (4.2.2 Bad case: For each amount class, test with(null), expected NullPointerException.)
testWithNull4ProvidedOperators (4.2.2 Bad case: For each amount class, test with(), operator throws exception.)
org.javamoney.tck.tests.conversion.ProviderChainsTest
testCorrectRateEvaluationInChainHistoric (4.3.4 Test correct rate evaluation for different conversion provider chains, with historic rates.)
testCorrectRateEvaluationInChain_diffProviders (4.3.4 Test correct rate evaluation for different conversion provider chains.)
testCorrectRateEvaluationInChain_sameProviders (4.3.4 Test correct rate evaluation for different conversion provider chains, with duplicate provider entries.)
testTCKRateChainAvailability (4.3.4 Test availability of TCK provided providers.)
org.javamoney.tck.tests.conversion.ExchangeRatesAndRateProvidersTest
testAccessKnownRates (4.3.3 Test access of Conversion Rates, using TCK provided rate provider.)
testAccessKnownRatesAndContext (4.3.3 Test access to exchange rates from TestRateProvider, using target CUrrencyUnit.)
testAccessKnownRatesWithCodes (4.3.3 Test access to exchange rates from TestRateProvider, using target currency code.)
testAccessKnownRatesWithCodesAndContext (4.3.3 Test access to conversion rates, including known factor, using TestRateProvider.)
testAccessRates_IdentityRatesWithCodes (4.3.3 Test access to conversion rate for currency codes, using default provider.)
testAccessRates_IdentityRatesWithUnits (4.3.3 Test access to identity conversion rate for CurrencyUnits, using default provider)
testAccessRates_IdentityRatesWithUnitsAndContext (4.3.3 Test access to conversion rate for CurrencyQuery, using default provider.)
testInvalidUsage_InvalidSourceCurrency (4.3.3 Bad case: try accessing exchange rates with invalid base currency code.)
testInvalidUsage_InvalidSourceCurrencyAndContext (4.3.3 Bad case: try accessing exchange rates with null ConversionQuery.)
testInvalidUsage_InvalidTargetCurrency (4.3.3 Bad case: try accessing exchange rates with invalid term currency code.)
testInvalidUsage_NullSourceCurrency (4.3.3 Bad case: try accessing exchange rates with null base currency code.)
testInvalidUsage_NullSourceCurrencyUnit (4.3.3 Bad case: try accessing exchange rates with null base CurrencyUnit.)
testInvalidUsage_NullTargetCurrency (4.3.3 Bad case: try accessing exchange rates with null term currency code.)
testInvalidUsage_NullTargetCurrencyUnit (4.3.3 Bad case: try accessing exchange rates with null term CurrencyUnit.)
testPassingOverConversionContextToSPIs (4.3.3 Ensure additional ConversionQuery data is passed correctly to SPIs.)
org.javamoney.tck.tests.AccessingCurrenciesAmountsRoundingsTest
testAccessCustomRoundings (4.2.7 Access named roundings and ensure TCK named roundings are registered.)
testAccessRoundingsForCustomCurrencies_Default (4.2.7 Ensure Monetary instances are available, for all registered currencies.)
testAccessRoundingsForCustomCurrencies_Explicit (4.2.7 Ensure Monetary instances are available, also for any custom currency (not registered).)
testAccessRoundingsForCustomCurrencies_Explicit_Null (4.2.7 Expected NullPointerException accessing a rounding with 'Monetary.getRounding(null)'.)
testAccessRoundingsWithMonetaryContext_Null (4.2.7 Ensure NullPointerException is thrown for 'Monetary.getRounding((RoundingContext) null)'.)
testAccessRoundingsWithRoundingContext (4.2.7 Ensure correct MonetaryRounding returned for a mathematical RoundingQuery.)
testAllISOCurrenciesAvailable (4.2.7 Test if Monetary provides all ISO related entries similar to java.util.Currency.)
testAllLocaleCurrenciesAvailable (4.2.7 Test if Monetary provides all locale related entries similar to java.util.Currency.)
testAmountDefaultType (4.2.7 Ensure a default MonetaryAmountFactory is available.)
testAmountQueryType (4.2.7 Ensure correct query function, Monetary.getAmountFactories should return factoryfor explicit acquired amount types.)
testAmountTypesInstantiatable (4.2.7 Ensure amount factories are accessible for all types available in Monetary.)
testAmountTypesProvided (4.2.7 Ensure amount classes to test are setup and registered/available in Monetary.)
testCorrectISOCodes (4.2.7 Test if Monetary provides correct ISO related entries similar to java.util.Currency.)
testCorrectLocales (4.2.7 Test if Monetary provides correct locale related entries similar to java.util.Currency.)
testCustomCurrencies (4.2.7 Test if Monetary provides customized locale identified currencies.)
testCustomRoundings (4.2.7 Access custom roundings and ensure correct functionality.)
testCustomRoundings_Foo (4.2.7 Ensure MonetaryException is thrown for accessing invalid named rounding.)
testCustomRoundings_Null (4.2.7 Ensure NullPointerException is thrown for Monetary.getRounding((String) null).)
org.javamoney.tck.tests.CreatingMonetaryAmountsTest
testAccessToMonetaryAmountFactory (4.2.6 Ensure MonetaryAmountFactory instances are accessible for all amount types under test.)
testMonetaryAmountFactoryCreateAmountsWithInvalidCurrency (4.2.6 Bad case: For each MonetaryAmount Factory: Create zero amounts from a factory with an invalid currency.)
testMonetaryAmountFactoryCreateAmountsWithInvalidMonetaryContext (4.2.6 Bad case: For each MonetaryAmount Factory: Create zero amounts from a factory with an invalid MonetaryContext.)
testMonetaryAmountFactoryCreateNegativeInvalidContext_BadCase (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts, with no currency, expect MonetaryException.)
testMonetaryAmountFactoryCreateNegativeInvalidCurrency_BadCase (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts, with invalid currency, expect MonetaryException.)
testMonetaryAmountFactoryCreateNegativeNoCurrency_BadCase (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts, with no currency, expect MonetaryException.)
testMonetaryAmountFactoryCreatePositiveAmountsWitCurrencies (4.2.6 For each MonetaryAmount Factory: Create positive amounts.)
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts (4.2.6 For each MonetaryAmount Factory: Create positive amounts with explicit MonetaryContext.)
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts2 (4.2.6 For each MonetaryAmount Factory: Create positive amounts using doubles with explicit MonetaryContext (precision/scale).)
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts3 (4.2.6 For each MonetaryAmount Factory: Create positive amounts using BigDecimal with explicit MonetaryContext (precision/scale).)
testMonetaryAmountFactoryCreatePositiveAmountsWithInvalidNumber (4.2.6 Bad case: For each MonetaryAmount Factory: Create positive amounts using invalid numbers, expecting ArithemticException thrown.)
testMonetaryAmountFactoryCreatePositiveInvalidContext_BadCase (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts with an invalid currency, expecting MonetaryException thrown.)
testMonetaryAmountFactoryCreatePositiveInvalidCurrency_BadCase (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts with an invalid currency, expecting MonetaryException thrown.)
testMonetaryAmountFactoryCreatePositiveNoCurrency_BadCase (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts without currency, expecting MonetaryException thrown.)
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts (4.2.6 Ensure MonetaryAmountFactory instances support creation of 0 amounts, with explicit MonetaryContext.)
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts2 (4.2.6 Ensure MonetaryAmountFactory instances support creation of 0 amounts, with different explicit MonetaryContext.)
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts3 (4.2.6 Ensure MonetaryAmountFactory instances support creation of 0 amounts, with different explicit MonetaryContext (precision, scale).)
testMonetaryAmountFactoryCreateZeroAmountsWithDiffCurrencies (4.2.6 Ensure MonetaryAmountFactory instances support creation of 0 amounts.)
testMonetaryAmountFactoryMinMaxCapabilities (4.2.6 Ensure MonetaryAmountFactory instances accessible for all amount types under test return correct min/max MonetaryContext.)
testMonetaryAmountFactoryMinMaxCapabilities_Compare (4.2.6 Ensure MonetaryAmountFactory instances accessible for all amount types under test return correct min/max MonetaryContext (min <= max).)
testMonetaryAmountFactoryNegativePositiveAmountsWitCurrencies (4.2.6 For each MonetaryAmount Factory: Create negative amounts.)
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts (4.2.6 For each MonetaryAmount Factory: Create negative amounts, with explicit MonetaryContext.)
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts2 (4.2.6 For each MonetaryAmount Factory: Create negative amounts, with explicit MonetaryContext.)
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts3 (4.2.6 For each MonetaryAmount Factory: Create negative amounts, with explicit MonetaryContext.)
testMonetaryAmountFactoryNegativePositiveAmountsWithInvalidNumber (4.2.6 Bad case: For each MonetaryAmount Factory: Create negative amounts, with invalid numeric value, expect ArithmeticException.)
testMonetaryAmountFactoryReturnsCorrectType (4.2.6 Ensure MonetaryAmountFactory instances accessible for all amount types under test return correct amount type.)
testMonetaryAmountTypes_Available (4.2.7 Ensure the types available, must be at least one type.)
org.javamoney.tck.tests.format.FormattingMonetaryAmountsTest
testAmountStyleOf (4.4.3 Ensures for each locale defined by DecimalFormat.getAvailableLocales() a MonetaryFormats.getAmountFormat(AmountFormatQuery) returns a formatter.)
testFormattingIsIndependentOfImplementation (4.4.1 Formats amounts using all available locales.)
testGetAmountFormat (4.4.3 Ensures for each locale defined by DecimalFormat.getAvailableLocales() a MonetaryAmountFormat instance is provided.)
testGetAvailableLocales (4.4.3 Ensures for each locale defined by DecimalFormat.getAvailableLocales() a MonetaryFormats.isAvailable(Locale) is true.)
testLocalesSupported (4.4.3 Ensures all Locales defined by DecimalFormat.getAvailableLocales() are available for monetary formatting.)
testNoDepOnAmountImplementation (4.4.1 Ensures the system.s default locale is supported for MonetaryAmountFormat.)
testParseDifferentStyles (4.4.2 Test formats and parses (round-trip) any supported amount type for each supported Locale, using different format queries.)
testParseIsIndependentOfImplementation (4.4.1 Test formats and parses (round-trip) any supported amount type for each supported Locale.)
testParseWithDifferentCurrencies (4.4.1 Test formats and parses (round-trip) any supported amount type for each supported Locale, checks results for different currencies)
org.javamoney.tck.tests.ExternalizingNumericValueTest
testDoubleNegative (4.2.3 Checks if a correct Double value is returned, no truncation is allowed to be performed.)
testDoubleValueWithTruncationZero (4.2.3 Check if a correct double value is returned, truncation is allowed to be performed (but is not necessary).)
testDoubleWithTruncationNegative (4.2.3 Checks if a correct double value is returned, truncation is allowed to be performed.)
testIntegerNegative (4.2.3 Checks if a correct Integer value is returned, no truncation is allowed to be performed.)
testIntegerValueWithTruncationZero (4.2.3 Check if a correct integer value is returned, truncation is allowed to be performed. Check should be done for every JDK type supported.)
testIntegerWithTruncationNegative (4.2.3 Check if a correct integer value is returned, truncation is allowed to be performed..)
testIntegerZero (4.2.3 Check if a correct integer value is returned, no truncation is allowed to be performed.)
testLongNegative (4.2.3 Checks if a correct negative long value is returned, no truncation is allowed to be performed.)
testLongValueWithTruncationZero (4.2.3 Check if a correct long value is returned, truncation is allowed to be performed. Check should be done for every JDK type supported.)
testLongWithTruncationNegative (4.2.3 Checks if a correct long value is returned, truncation is allowed to be performed.)
testLongZero (4.2.3 Check if a correct long zero value is returned, no truncation is allowed to be performed.)
testNumberTypeNegative (4.2.3 Ensure NumberValue numberValue() works correnctly.)
testNumberTypeZero (4.2.3 Checks if number type is not null and returning a concrete (no abstract class or interface).)
testNumberValueWithTruncationNegative (4.2.3 Checks if a correct long value is returned, truncation is allowed to be performed. Check should be done for every JDK type.)
testNumberValueWithTruncationNegative_Double (4.2.3 Checks if a correct double value is returned, truncation is allowed to be performed. Check should be done for every JDK type.)
testNumberValueWithTruncationNegative_Float (4.2.3 Checks if a correct double value is returned, truncation is allowed to be performed. Check should be done for every JDK type.)
testNumberValueWithTruncationNegative_Integer (4.2.3 Checks if a correct int value is returned, truncation is allowed to be performed. Check should be done for every JDK type.)
testNumberValueWithTruncationNegative_Long (4.2.3 Checks if a correct Number value is returned, truncation is allowed to be performed. Check should be done for every JDK type.)
testNumberValueWithTruncationNegative_Short (4.2.3 Checks if a correct double value is returned, truncation is allowed to be performed. Check should be done for every JDK type.)
testNumberValueWithTruncationZero (4.2.3 Check if a correct Number value is returned, truncation is allowed to be performed. Check should be done for every JDK type supported.)
testNumberValueZero (4.2.3 Check if a correct long zero value is returned, no truncation is allowed to be performed.)
testNumberWithTruncationNegative (4.2.3 Check if a correct number value is returned, truncation is allowed to be performed. Check should be done for every JDK type supported.)
testPrecisionNegative (4.2.3 Test correct precision values, including border cases.)
testPrecisionValues (4.2.3 Ensure NumberValue getPrecision() works correctly.)
testPrecisionZero (4.2.3 Check if a correct precision value is returned. Check should be done for every JDK type supported.)
testReturningNumberValueIsNotNull (4.2.3 Amount types do not return a NumberValue of null.)
testScaleNegative (4.2.3 Test correct scale values, including border cases.)
testScaleValues (4.2.3 Ensure NumberValue getScale() works correctly.)
testScaleZero (4.2.3 Check if a correct scale value is returned. Check should be done for every JDK type supported.)
testValidDouble (4.2.3 Ensure NumberValue doubleValue(), doubleValueExact() provide correct values.)
testValidDoubleWithTruncation (4.2.3 Ensure NumberValue doubleValue() is truncated.)
testValidInteger (4.2.3 Ensure NumberValue intValue(), intValueExact() provide correct values.)
testValidIntegerWithTruncation (4.2.3 Ensure NumberValue intValue() is truncated.)
testValidLong (4.2.3 Ensure NumberValue longValue(), longValueExact() provide correct values.)
testValidLongWithTruncation (4.2.3 Ensure NumberValue longValue() is truncated.)
testValidNumberBD (4.2.3 Ensure NumberValue asType(BigDecimal.class) provides correct values.)
testValidNumberBI (4.2.3 Ensure NumberValue asType(BigInteger.class) provides correct values.)
testValidNumberWithTruncation_Byte (4.2.3 Ensure NumberValue byteValue() is truncated.)
testValidNumberWithTruncation_Double (4.2.3 Ensure NumberValue doubleValue() is truncated.)
testValidNumberWithTruncation_Float (4.2.3 Ensure NumberValue floatValue() is truncated.)
testValidNumberWithTruncation_Integer (4.2.3 Ensure NumberValue intValue() is truncated correctly.)
testValidNumberWithTruncation_Short (4.2.3 Ensure NumberValue shortValue() is truncated.)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="JSR354-TCK, version 1.0">
  <test name="TCK/Test Setup - Java 7">
    <classes>
      <class name="org.javamoney.tck.TCKTestSetup"/>
      <class name="org.javamoney.tck.tests.ModellingCurrenciesTest"/>
      <class name="org.javamoney.tck.tests.ModellingMonetaryAmountsTest"/>
      <class name="org.javamoney.tck.tests.CreatingMonetaryAmountsTest"/>
      <class name="org.javamoney.tck.tests.ExternalizingNumericValueTest"/>
      <class name="org.javamoney.tck.tests.FunctionalExtensionPointsTest"/>
      <class name="org.javamoney.tck.tests.AccessingCurrenciesAmountsRoundingsTest"/>
      <class name="org.javamoney.tck.tests.conversion.MonetaryConversionsTest"/>
      <class name="org.javamoney.tck.tests.conversion.ExchangeRatesAndRateProvidersTest"/>
      <class name="org.javamoney.tck.tests.conversion.ConvertingAmountsTest"/>
      <class name="org.javamoney.tck.tests.conversion.ProviderChainsTest"/>
      <class name="org.javamoney.tck.tests.format.FormattingMonetaryAmountsTest"/>
    </classes>
  </test> <!-- TCK/Test Setup - Java 7 -->
</suite> <!-- JSR354-TCK, version 1.0 -->
            
Tests for JSR354-TCK, version 1.0
  • TCK/Test Setup - Java 7 (12 classes)
Groups for JSR354-TCK, version 1.0
Times for JSR354-TCK, version 1.0
Total running time: 2 seconds
Reporter output for JSR354-TCK, version 1.0
0 ignored methods
Methods in chronological order
org.javamoney.tck.tests.ModellingCurrenciesTest
testCurrencyClassesComparable 0 ms
testCurrencyClassesEqualsHashcode 89 ms
testEnforce3LetterCode4ISO 89 ms
testEnsureCurrencyUnit 90 ms
testEqualISOCurrencies 91 ms
testISOCodes 92 ms
testImplementsEquals 93 ms
testImplementsSerializable 94 ms
testIsImmutable 102 ms
org.javamoney.tck.tests.ModellingMonetaryAmountsTest
testAbsolute 1022 ms
testAddMixedFractions 1068 ms
testAddMixedIntegers 1081 ms
testAddNegativeIntegers 1083 ms
testAddPositiveFractions 1084 ms
testAddPositiveIntegers 1085 ms
testAdd_ExceedsCapabilities 1086 ms
testAdd_IncompatibleCurrencies 1087 ms
testAdd_Null 1088 ms
testAdd_Zero 1088 ms
testCurrencyCode 1089 ms
testDivide 1145 ms
testDivideAndRemainder 1146 ms
testDivideAndRemainderDoubleNEGATIVE_INFINITY 1147 ms
testDivideAndRemainderDoubleNaN 1147 ms
testDivideAndRemainderDoublePOSITIVE_INFINITY 1148 ms
testDivideAndRemainderNull 1148 ms
testDivideAndRemainderOne 1149 ms
testDivideAndRemainderZero 1150 ms
testDivideDoubleNEGATIVE_INFINITY 1150 ms
testDivideDoubleNaN 1151 ms
testDivideDoublePOSITIVE_INFINITY 1151 ms
testDivideNull 1152 ms
testDivideOne 1152 ms
testDivideToIntegralValue 1153 ms
testDivideZero 1154 ms
testEnsureMonetaryAmount 1154 ms
testGetMonetaryContext 1155 ms
testGetNumber 1155 ms
testImmutable 1157 ms
testImplementComparable 1264 ms
testImplementsEquals 1265 ms
testImplementsHashCode 1266 ms
testIsNegative 1267 ms
testIsNegativeOrZero 1268 ms
testIsPositive 1269 ms
testIsPositiveOrZero 1271 ms
testIsZero 1272 ms
testIsZeroAdvanced 1273 ms
testMonetaryAmountFactories 1274 ms
testMonetaryAmountFactories_CreateWithCurrencies 1285 ms
testMonetaryAmountFactories_CreateWithMonetaryContext 1286 ms
testMonetaryAmountFactories_CreateWithMonetaryContextNumberAndCurrency 1287 ms
testMonetaryAmountFactories_InstancesMustBeEqual 1287 ms
testMonetaryAmountFactories_InstantesMustBeNotEqual 1288 ms
testMonetaryAmount_isEqualTo 1289 ms
testMonetaryAmount_isEqualToRegardlessMonetaryContext 1294 ms
testMonetaryAmount_isEqualToRegardlessType 1295 ms
testMonetaryAmount_isGreaterThan 1298 ms
testMonetaryAmount_isGreaterThanOrEquals 1323 ms
testMonetaryAmount_isLessThan 1325 ms
testMonetaryAmount_isLessThanOrEqualTo 1326 ms
testMultiplyExceedsCapabilities 1328 ms
testMultiplyNull 1329 ms
testMultiplyOne 1329 ms
testMultiply_Decimals 1329 ms
testMultiply_DoubleNEGATIVE_INFINITY 1330 ms
testMultiply_DoubleNaN 1331 ms
testMultiply_DoublePOSITIVE_INFINITY 1331 ms
testMultiply_Integral 1331 ms
testNegate 1332 ms
testQuery 1333 ms
testQueryInvalidQuery 1339 ms
testQueryNull 1343 ms
testRemainder 1343 ms
testRemainderNull 1352 ms
testRemainderZero_Double 1352 ms
testRemainderZero_Long 1353 ms
testRemainderZero_Number 1353 ms
testRemainder_DoubleNEGATIVE_INFINITY 1353 ms
testRemainder_DoubleNaN 1354 ms
testRemainder_DoublePOSITIVE_INFINITY 1354 ms
testScaleByPowerOfTen 1355 ms
testSignum 1368 ms
testSubtractMixedFractions 1369 ms
testSubtractMixedIntegers 1370 ms
testSubtractNegativeIntegers 1372 ms
testSubtractPositiveFractions 1372 ms
testSubtractPositiveIntegers 1373 ms
testSubtract_ExceedsCapabilities 1374 ms
testSubtract_IncompatibleCurrencies 1376 ms
testSubtract_Null 1376 ms
testSubtract_Zero 1377 ms
testWith 1377 ms
testWith4ProvidedOperators 1382 ms
testWithInvalidOperator 1554 ms
testWithNull 1557 ms
testWithNull4ProvidedOperators 1558 ms
org.javamoney.tck.tests.CreatingMonetaryAmountsTest
testAccessToMonetaryAmountFactory 1560 ms
testMonetaryAmountFactoryCreateAmountsWithInvalidCurrency 1560 ms
testMonetaryAmountFactoryCreateAmountsWithInvalidMonetaryContext 1572 ms
testMonetaryAmountFactoryCreateNegativeInvalidContext_BadCase 1572 ms
testMonetaryAmountFactoryCreateNegativeInvalidCurrency_BadCase 1572 ms
testMonetaryAmountFactoryCreateNegativeNoCurrency_BadCase 1573 ms
testMonetaryAmountFactoryCreatePositiveAmountsWitCurrencies 1573 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts 1594 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts2 1595 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts3 1596 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithInvalidNumber 1597 ms
testMonetaryAmountFactoryCreatePositiveInvalidContext_BadCase 1597 ms
testMonetaryAmountFactoryCreatePositiveInvalidCurrency_BadCase 1597 ms
testMonetaryAmountFactoryCreatePositiveNoCurrency_BadCase 1598 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts 1598 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts2 1599 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts3 1600 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffCurrencies 1600 ms
testMonetaryAmountFactoryMinMaxCapabilities 1620 ms
testMonetaryAmountFactoryMinMaxCapabilities_Compare 1620 ms
testMonetaryAmountFactoryNegativePositiveAmountsWitCurrencies 1620 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts 1693 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts2 1694 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts3 1695 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithInvalidNumber 1696 ms
testMonetaryAmountFactoryReturnsCorrectType 1696 ms
testMonetaryAmountTypes_Available 1696 ms
org.javamoney.tck.tests.ExternalizingNumericValueTest
testDoubleNegative 1697 ms
testDoubleValueWithTruncationZero 1698 ms
testDoubleWithTruncationNegative 1699 ms
testIntegerNegative 1701 ms
testIntegerValueWithTruncationZero 1702 ms
testIntegerWithTruncationNegative 1703 ms
testIntegerZero 1703 ms
testLongNegative 1704 ms
testLongValueWithTruncationZero 1705 ms
testLongWithTruncationNegative 1706 ms
testLongZero 1706 ms
testNumberTypeNegative 1707 ms
testNumberTypeZero 1708 ms
testNumberValueWithTruncationNegative 1709 ms
testNumberValueWithTruncationNegative_Double 1710 ms
testNumberValueWithTruncationNegative_Float 1711 ms
testNumberValueWithTruncationNegative_Integer 1712 ms
testNumberValueWithTruncationNegative_Long 1713 ms
testNumberValueWithTruncationNegative_Short 1713 ms
testNumberValueWithTruncationZero 1714 ms
testNumberValueZero 1715 ms
testNumberWithTruncationNegative 1716 ms
testPrecisionNegative 1717 ms
testPrecisionValues 1719 ms
testPrecisionZero 1722 ms
testReturningNumberValueIsNotNull 1723 ms
testScaleNegative 1723 ms
testScaleValues 1725 ms
testScaleZero 1727 ms
testValidDouble 1728 ms
testValidDoubleWithTruncation 1729 ms
testValidInteger 1730 ms
testValidIntegerWithTruncation 1731 ms
testValidLong 1733 ms
testValidLongWithTruncation 1733 ms
testValidNumberBD 1734 ms
testValidNumberBI 1735 ms
testValidNumberWithTruncation_Byte 1736 ms
testValidNumberWithTruncation_Double 1736 ms
testValidNumberWithTruncation_Float 1739 ms
testValidNumberWithTruncation_Integer 1740 ms
testValidNumberWithTruncation_Short 1741 ms
org.javamoney.tck.tests.FunctionalExtensionPointsTest
testOperatorReturnTypeEqualsParameter 1742 ms
org.javamoney.tck.tests.AccessingCurrenciesAmountsRoundingsTest
testAccessCustomRoundings 1747 ms
testAccessRoundingsForCustomCurrencies_Default 1748 ms
testAccessRoundingsForCustomCurrencies_Explicit 1787 ms
testAccessRoundingsForCustomCurrencies_Explicit_Null 1795 ms
testAccessRoundingsWithMonetaryContext_Null 1795 ms
testAccessRoundingsWithRoundingContext 1795 ms
testAllISOCurrenciesAvailable 1796 ms
testAllLocaleCurrenciesAvailable 1798 ms
testAmountDefaultType 1848 ms
testAmountQueryType 1848 ms
testAmountTypesInstantiatable 1849 ms
testAmountTypesProvided 1849 ms
testCorrectISOCodes 1849 ms
testCorrectLocales 1851 ms
testCustomCurrencies 1858 ms
testCustomRoundings 1858 ms
testCustomRoundings_Foo 1860 ms
testCustomRoundings_Null 1860 ms
org.javamoney.tck.tests.conversion.MonetaryConversionsTest
testConversionsAreAvailable 1861 ms
testConversionsAreAvailableWithQuery 1880 ms
testDefaultConversion 1881 ms
testDefaultProviderChainIsDefined 1881 ms
testDefaultProviderChainIsDefinedDefault 1882 ms
testDefaultProviderChainIsDefinedDefault2 1882 ms
testDefaultProviderChainIsDefinedDefaultWithContext 1882 ms
testProviderMetadata 1883 ms
testProviderMetadata2 1883 ms
testProviderMetadata2WithContext 1884 ms
testProviderMetadata3 1885 ms
testProviderMetadata3WithContext 1886 ms
testProvidersAvailable 1887 ms
testUseInvalidProvider 1887 ms
testUseInvalidProviderWithinChain 1887 ms
org.javamoney.tck.tests.conversion.ExchangeRatesAndRateProvidersTest
testAccessKnownRates 1888 ms
testAccessKnownRatesAndContext 1890 ms
testAccessKnownRatesWithCodes 1892 ms
testAccessKnownRatesWithCodesAndContext 1894 ms
testAccessRates_IdentityRatesWithCodes 1895 ms
testAccessRates_IdentityRatesWithUnits 1899 ms
testAccessRates_IdentityRatesWithUnitsAndContext 1901 ms
testInvalidUsage_InvalidSourceCurrency 1903 ms
testInvalidUsage_InvalidSourceCurrencyAndContext 1904 ms
testInvalidUsage_InvalidTargetCurrency 1904 ms
testInvalidUsage_NullSourceCurrency 1905 ms
testInvalidUsage_NullSourceCurrencyUnit 1905 ms
testInvalidUsage_NullTargetCurrency 1906 ms
testInvalidUsage_NullTargetCurrencyUnit 1906 ms
testPassingOverConversionContextToSPIs 1906 ms
org.javamoney.tck.tests.conversion.ConvertingAmountsTest
testConversion 1907 ms
testConversionComparedWithRate 1907 ms
testNullConversion1 1908 ms
testNullConversion2 1908 ms
testUnsupportedConversion 1908 ms
org.javamoney.tck.tests.conversion.ProviderChainsTest
testCorrectRateEvaluationInChainHistoric 1909 ms
testCorrectRateEvaluationInChain_diffProviders 1909 ms
org.javamoney.tck.tests.format.FormattingMonetaryAmountsTest
testAmountStyleOf 1910 ms
org.javamoney.tck.tests.conversion.ProviderChainsTest
testCorrectRateEvaluationInChain_sameProviders 1910 ms
testTCKRateChainAvailability 1910 ms
org.javamoney.tck.tests.format.FormattingMonetaryAmountsTest
testFormattingIsIndependentOfImplementation 2186 ms
testGetAmountFormat 2225 ms
testGetAvailableLocales 2237 ms
testLocalesSupported 2237 ms
testNoDepOnAmountImplementation 2246 ms
testParseDifferentStyles 2261 ms
testParseIsIndependentOfImplementation 2364 ms
testParseWithDifferentCurrencies 2400 ms