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 6 ms
testEnforce3LetterCode4ISO 7 ms
testEnsureCurrencyUnit 8 ms
testEqualISOCurrencies 8 ms
testISOCodes 9 ms
testImplementsEquals 11 ms
testImplementsSerializable 11 ms
testIsImmutable 18 ms
org.javamoney.tck.tests.ModellingMonetaryAmountsTest
testAbsolute 872 ms
testAddMixedFractions 904 ms
testAddMixedIntegers 916 ms
testAddNegativeIntegers 918 ms
testAddPositiveFractions 918 ms
testAddPositiveIntegers 919 ms
testAdd_ExceedsCapabilities 921 ms
testAdd_IncompatibleCurrencies 921 ms
testAdd_Null 922 ms
testAdd_Zero 922 ms
testCurrencyCode 923 ms
testDivide 965 ms
testDivideAndRemainder 966 ms
testDivideAndRemainderDoubleNEGATIVE_INFINITY 967 ms
testDivideAndRemainderDoubleNaN 968 ms
testDivideAndRemainderDoublePOSITIVE_INFINITY 968 ms
testDivideAndRemainderNull 969 ms
testDivideAndRemainderOne 969 ms
testDivideAndRemainderZero 970 ms
testDivideDoubleNEGATIVE_INFINITY 971 ms
testDivideDoubleNaN 971 ms
testDivideDoublePOSITIVE_INFINITY 972 ms
testDivideNull 972 ms
testDivideOne 973 ms
testDivideToIntegralValue 973 ms
testDivideZero 974 ms
testEnsureMonetaryAmount 975 ms
testGetMonetaryContext 975 ms
testGetNumber 976 ms
testImmutable 977 ms
testImplementComparable 1196 ms
testImplementsEquals 1197 ms
testImplementsHashCode 1198 ms
testIsNegative 1198 ms
testIsNegativeOrZero 1200 ms
testIsPositive 1201 ms
testIsPositiveOrZero 1202 ms
testIsZero 1203 ms
testIsZeroAdvanced 1204 ms
testMonetaryAmountFactories 1205 ms
testMonetaryAmountFactories_CreateWithCurrencies 1207 ms
testMonetaryAmountFactories_CreateWithMonetaryContext 1208 ms
testMonetaryAmountFactories_CreateWithMonetaryContextNumberAndCurrency 1209 ms
testMonetaryAmountFactories_InstancesMustBeEqual 1210 ms
testMonetaryAmountFactories_InstantesMustBeNotEqual 1211 ms
testMonetaryAmount_isEqualTo 1212 ms
testMonetaryAmount_isEqualToRegardlessMonetaryContext 1216 ms
testMonetaryAmount_isEqualToRegardlessType 1218 ms
testMonetaryAmount_isGreaterThan 1220 ms
testMonetaryAmount_isGreaterThanOrEquals 1222 ms
testMonetaryAmount_isLessThan 1224 ms
testMonetaryAmount_isLessThanOrEqualTo 1226 ms
testMultiplyExceedsCapabilities 1227 ms
testMultiplyNull 1228 ms
testMultiplyOne 1228 ms
testMultiply_Decimals 1229 ms
testMultiply_DoubleNEGATIVE_INFINITY 1229 ms
testMultiply_DoubleNaN 1230 ms
testMultiply_DoublePOSITIVE_INFINITY 1230 ms
testMultiply_Integral 1231 ms
testNegate 1231 ms
testQuery 1232 ms
testQueryInvalidQuery 1233 ms
testQueryNull 1235 ms
testRemainder 1235 ms
testRemainderNull 1243 ms
testRemainderZero_Double 1244 ms
testRemainderZero_Long 1244 ms
testRemainderZero_Number 1245 ms
testRemainder_DoubleNEGATIVE_INFINITY 1245 ms
testRemainder_DoubleNaN 1246 ms
testRemainder_DoublePOSITIVE_INFINITY 1246 ms
testScaleByPowerOfTen 1263 ms
testSignum 1277 ms
testSubtractMixedFractions 1278 ms
testSubtractMixedIntegers 1279 ms
testSubtractNegativeIntegers 1280 ms
testSubtractPositiveFractions 1281 ms
testSubtractPositiveIntegers 1282 ms
testSubtract_ExceedsCapabilities 1282 ms
testSubtract_IncompatibleCurrencies 1285 ms
testSubtract_Null 1285 ms
testSubtract_Zero 1285 ms
testWith 1286 ms
testWith4ProvidedOperators 1288 ms
testWithInvalidOperator 1303 ms
testWithNull 1304 ms
testWithNull4ProvidedOperators 1305 ms
org.javamoney.tck.tests.CreatingMonetaryAmountsTest
testAccessToMonetaryAmountFactory 1307 ms
testMonetaryAmountFactoryCreateAmountsWithInvalidCurrency 1308 ms
testMonetaryAmountFactoryCreateAmountsWithInvalidMonetaryContext 1320 ms
testMonetaryAmountFactoryCreateNegativeInvalidContext_BadCase 1321 ms
testMonetaryAmountFactoryCreateNegativeInvalidCurrency_BadCase 1321 ms
testMonetaryAmountFactoryCreateNegativeNoCurrency_BadCase 1322 ms
testMonetaryAmountFactoryCreatePositiveAmountsWitCurrencies 1322 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts 1343 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts2 1344 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithContexts3 1345 ms
testMonetaryAmountFactoryCreatePositiveAmountsWithInvalidNumber 1346 ms
testMonetaryAmountFactoryCreatePositiveInvalidContext_BadCase 1346 ms
testMonetaryAmountFactoryCreatePositiveInvalidCurrency_BadCase 1346 ms
testMonetaryAmountFactoryCreatePositiveNoCurrency_BadCase 1347 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts 1347 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts2 1349 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffContexts3 1371 ms
testMonetaryAmountFactoryCreateZeroAmountsWithDiffCurrencies 1374 ms
testMonetaryAmountFactoryMinMaxCapabilities 1390 ms
testMonetaryAmountFactoryMinMaxCapabilities_Compare 1390 ms
testMonetaryAmountFactoryNegativePositiveAmountsWitCurrencies 1391 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts 1407 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts2 1408 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithContexts3 1408 ms
testMonetaryAmountFactoryNegativePositiveAmountsWithInvalidNumber 1409 ms
testMonetaryAmountFactoryReturnsCorrectType 1410 ms
testMonetaryAmountTypes_Available 1410 ms
org.javamoney.tck.tests.ExternalizingNumericValueTest
testDoubleNegative 1411 ms
testDoubleValueWithTruncationZero 1412 ms
testDoubleWithTruncationNegative 1412 ms
testIntegerNegative 1415 ms
testIntegerValueWithTruncationZero 1416 ms
testIntegerWithTruncationNegative 1417 ms
testIntegerZero 1417 ms
testLongNegative 1418 ms
testLongValueWithTruncationZero 1419 ms
testLongWithTruncationNegative 1420 ms
testLongZero 1420 ms
testNumberTypeNegative 1421 ms
testNumberTypeZero 1422 ms
testNumberValueWithTruncationNegative 1424 ms
testNumberValueWithTruncationNegative_Double 1425 ms
testNumberValueWithTruncationNegative_Float 1426 ms
testNumberValueWithTruncationNegative_Integer 1427 ms
testNumberValueWithTruncationNegative_Long 1428 ms
testNumberValueWithTruncationNegative_Short 1429 ms
testNumberValueWithTruncationZero 1429 ms
testNumberValueZero 1430 ms
testNumberWithTruncationNegative 1431 ms
testPrecisionNegative 1432 ms
testPrecisionValues 1435 ms
testPrecisionZero 1437 ms
testReturningNumberValueIsNotNull 1438 ms
testScaleNegative 1438 ms
testScaleValues 1441 ms
testScaleZero 1443 ms
testValidDouble 1443 ms
testValidDoubleWithTruncation 1444 ms
testValidInteger 1446 ms
testValidIntegerWithTruncation 1465 ms
testValidLong 1466 ms
testValidLongWithTruncation 1467 ms
testValidNumberBD 1467 ms
testValidNumberBI 1468 ms
testValidNumberWithTruncation_Byte 1469 ms
testValidNumberWithTruncation_Double 1470 ms
testValidNumberWithTruncation_Float 1472 ms
testValidNumberWithTruncation_Integer 1473 ms
testValidNumberWithTruncation_Short 1474 ms
org.javamoney.tck.tests.FunctionalExtensionPointsTest
testOperatorReturnTypeEqualsParameter 1475 ms
org.javamoney.tck.tests.AccessingCurrenciesAmountsRoundingsTest
testAccessCustomRoundings 1480 ms
testAccessRoundingsForCustomCurrencies_Default 1482 ms
testAccessRoundingsForCustomCurrencies_Explicit 1517 ms
testAccessRoundingsForCustomCurrencies_Explicit_Null 1525 ms
testAccessRoundingsWithMonetaryContext_Null 1525 ms
testAccessRoundingsWithRoundingContext 1525 ms
testAllISOCurrenciesAvailable 1526 ms
testAllLocaleCurrenciesAvailable 1528 ms
testAmountDefaultType 1543 ms
testAmountQueryType 1543 ms
testAmountTypesInstantiatable 1544 ms
testAmountTypesProvided 1544 ms
testCorrectISOCodes 1544 ms
testCorrectLocales 1546 ms
testCustomCurrencies 1554 ms
testCustomRoundings 1555 ms
testCustomRoundings_Foo 1556 ms
org.javamoney.tck.tests.conversion.MonetaryConversionsTest
testConversionsAreAvailable 1557 ms
org.javamoney.tck.tests.AccessingCurrenciesAmountsRoundingsTest
testCustomRoundings_Null 1557 ms
org.javamoney.tck.tests.conversion.MonetaryConversionsTest
testConversionsAreAvailableWithQuery 1582 ms
testDefaultConversion 1583 ms
testDefaultProviderChainIsDefined 1584 ms
testDefaultProviderChainIsDefinedDefault 1584 ms
testDefaultProviderChainIsDefinedDefault2 1584 ms
testDefaultProviderChainIsDefinedDefaultWithContext 1585 ms
testProviderMetadata 1585 ms
testProviderMetadata2 1585 ms
testProviderMetadata2WithContext 1586 ms
testProviderMetadata3 1587 ms
testProviderMetadata3WithContext 1588 ms
testProvidersAvailable 1589 ms
testUseInvalidProvider 1589 ms
testUseInvalidProviderWithinChain 1589 ms
org.javamoney.tck.tests.conversion.ExchangeRatesAndRateProvidersTest
testAccessKnownRates 1590 ms
testAccessKnownRatesAndContext 1592 ms
testAccessKnownRatesWithCodes 1594 ms
testAccessKnownRatesWithCodesAndContext 1596 ms
testAccessRates_IdentityRatesWithCodes 1598 ms
testAccessRates_IdentityRatesWithUnits 1601 ms
testAccessRates_IdentityRatesWithUnitsAndContext 1604 ms
testInvalidUsage_InvalidSourceCurrency 1605 ms
testInvalidUsage_InvalidSourceCurrencyAndContext 1606 ms
testInvalidUsage_InvalidTargetCurrency 1606 ms
testInvalidUsage_NullSourceCurrency 1607 ms
testInvalidUsage_NullSourceCurrencyUnit 1607 ms
testInvalidUsage_NullTargetCurrency 1608 ms
testInvalidUsage_NullTargetCurrencyUnit 1608 ms
org.javamoney.tck.tests.conversion.ConvertingAmountsTest
testConversion 1609 ms
testConversionComparedWithRate 1609 ms
org.javamoney.tck.tests.conversion.ExchangeRatesAndRateProvidersTest
testPassingOverConversionContextToSPIs 1609 ms
org.javamoney.tck.tests.conversion.ConvertingAmountsTest
testNullConversion1 1610 ms
testNullConversion2 1610 ms
testUnsupportedConversion 1610 ms
org.javamoney.tck.tests.conversion.ProviderChainsTest
testCorrectRateEvaluationInChainHistoric 1611 ms
testCorrectRateEvaluationInChain_diffProviders 1611 ms
testCorrectRateEvaluationInChain_sameProviders 1612 ms
testTCKRateChainAvailability 1612 ms
org.javamoney.tck.tests.format.FormattingMonetaryAmountsTest
testAmountStyleOf 1613 ms
testFormattingIsIndependentOfImplementation 1861 ms
testGetAmountFormat 1899 ms
testGetAvailableLocales 1911 ms
testLocalesSupported 1912 ms
testNoDepOnAmountImplementation 1921 ms
testParseDifferentStyles 1936 ms
testParseIsIndependentOfImplementation 2035 ms
testParseWithDifferentCurrencies 2091 ms