Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
467 0 0 3 99.358% 4.731

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
dev.orne.i18n.jaxb 48 0 0 0 100% 1.865
dev.orne.i18n.jackson 63 0 0 0 100% 0.938
dev.orne.i18n.spring 67 0 0 0 100% 1.016
dev.orne.i18n 120 0 0 0 100% 0.406
dev.orne.i18n.context 94 0 0 3 96.809% 0.295
dev.orne.i18n.validation 75 0 0 0 100% 0.211

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

dev.orne.i18n.jaxb

Class Tests Errors Failures Skipped Success Rate Time
I18nStringJavaxJaxbSerializationTest 26 0 0 0 100% 1.092
I18nStringJavaxJaxbDeserializationTest 22 0 0 0 100% 0.773

dev.orne.i18n.jackson

Class Tests Errors Failures Skipped Success Rate Time
I18nStringJacksonDeserializationTest 37 0 0 0 100% 0.873
I18nStringJacksonSerializationTest 26 0 0 0 100% 0.065

dev.orne.i18n.spring

Class Tests Errors Failures Skipped Success Rate Time
I18nSpringConfigurationSelectorTest 5 0 0 0 100% 0.052
I18nSpringConfigurationTest 13 0 0 0 100% 0.258
I18nSpringWebContextClearerTest 1 0 0 0 100% 0.033
EnableI18nContextHierarchyTest 1 0 0 0 100% 0.505
I18nSpringContextTest 8 0 0 0 100% 0.029
I18nSpringContextProviderTest 9 0 0 0 100% 0.017
I18nSpringWebConfigurationTest 14 0 0 0 100% 0.05
I18nSpringResourcesTest 16 0 0 0 100% 0.072

dev.orne.i18n

Class Tests Errors Failures Skipped Success Rate Time
I18nStringMapEditorTest 4 0 0 0 100% 0.011
I18nStringMapTest 44 0 0 0 100% 0.087
I18nFixedStringTest 10 0 0 0 100% 0.183
I18nTest 6 0 0 0 100% 0.014
I18nStringTest 5 0 0 0 100% 0.029
I18nStringEditorTest 4 0 0 0 100% 0.003
ExceptionsTest 1 0 0 0 100% 0.002
I18nResourcesStringTest 46 0 0 0 100% 0.077

dev.orne.i18n.context

Class Tests Errors Failures Skipped Success Rate Time
I18nContextProviderRegistryTest 7 0 0 0 100% 0.018
ThreadI18nContextProviderTest 16 0 0 0 100% 0.049
I18nContextProviderConfigurerTest 4 0 0 0 100% 0.006
AbstractI18nContextProviderTest 12 0 0 0 100% 0.045
I18nContextTest 4 0 0 0 100% 0.006
DummyI18nResourcesTest 12 0 0 0 100% 0.007
I18nBundleResourcesTest 16 0 0 0 100% 0.073
DefaultI18nContextTest 8 0 0 0 100% 0.01
SharedI18nContextProviderTest 5 0 0 0 100% 0.036
I18nConfigurationTest 10 0 0 3 70% 0.045

dev.orne.i18n.validation

Class Tests Errors Failures Skipped Success Rate Time
SizeValidatorForI18nStringTest 20 0 0 0 100% 0.057
NotBlankValidatorForI18nStringTest 15 0 0 0 100% 0.038
PatternValidatorForI18nStringTest 16 0 0 0 100% 0.036
NotEmptyValidatorForI18nStringTest 15 0 0 0 100% 0.031
AbstractValidatorForI18nStringTest 9 0 0 0 100% 0.049

Test Cases

[Summary] [Package List] [Test Cases]

I18nSpringConfigurationSelectorTest

testSpringWebConfigurationSelection(boolean)[1] 0.019
testSpringWebConfigurationSelection(boolean)[2] 0.002
testNoSpringWebConfigurationSelection(boolean)[1] 0.001
testNoSpringWebConfigurationSelection(boolean)[2] 0.002
testDefaultConstructor 0.001

I18nStringJacksonDeserializationTest

testMapAsObjectContainer_String 0.079
testMapAsObjectContainer_NullBean 0.002
testMapContainer_Null 0.002
testI18nString_Null 0.001
testI18nUnknownString_Null 0.001
testDeserialize_NullToken 0.455
testAsObjectContainer_Object 0.007
testAsObjectContainer_String 0.001
testI18nResourcesString_Object 0.013
testI18nResourcesString_String 0.001
testI18nBilingualString_Object 0.001
testI18nFixedString_Object 0.001
testI18nBilingualString_String 0.001
testContainer_Null 0.002
testI18nFixedString_String 0.001
testMapContainer_Object 0.002
testContainer_Object 0.001
testAsObjectContainer_Null 0
testMapContainer_String 0.001
testContainer_String 0.001
testI18nResourcesString_Null 0.001
testMapContainer_NullBean 0.001
testContainer_NullBean 0
testI18nUnknownString_Object 0.001
testI18nStringMap_Null 0.001
testAsObjectContainer_NullBean 0.001
testI18nUnknownString_String 0.001
testMapAsObjectContainer_Null 0.001
testDeserialize_InvalidToken 0.02
testI18nFixedString_Null 0.001
testDeserialize_NoToken 0.002
testI18nBilingualString_Null 0.001
testI18nStringMap_Object 0.001
testI18nString_Object 0.001
testI18nStringMap_String 0
testI18nString_String 0.001
testMapAsObjectContainer_Object 0.001

I18nStringMapEditorTest

testSetAsText_Null 0.001
testGetAsText_Null 0.001
testSetAsText 0.001
testGetAsText 0.001

I18nSpringConfigurationTest

testSetMessageSource 0.106
testDefaultConfigurer 0.009
testDetermineConfigurer 0.015
testCreateContextProvider 0.034
testAfterPropertiesSet_Target_Test 0.034
testSetApplicationContext 0.002
testSetImportMetadata 0.031
testAfterPropertiesSet_Target_Lib 0.003
testSetTarget 0.001
testAfterPropertiesSet 0.002
testAfterPropertiesSet_Target_Spring 0.002
testAfterPropertiesSet_Target_Thread 0.002
testConstructor 0.001

I18nSpringWebContextClearerTest

testClearContext 0.031

I18nContextProviderRegistryTest

testConfigure_Missing 0.002
testConfigure_Default 0.004
testConfigure_Properties 0.003
testSet 0.001
testConfigure_NoType 0.002
testConfigure_Shared 0.002
testConfigure 0.002

I18nStringMapTest

testSet_Language_Multiple 0.002
testGet_Language_Null 0.001
testIsEquivalent 0.001
testDefaultGeneration 0.003
testSetI18n_Null 0.001
testRemove_Language 0
testCopyConstructor 0
testGet 0.003
testCopyConstructor_Fixed 0.001
testCopyConstructor_IFace 0.001
testGet_Locale_Missing 0
testAsMap 0.001
testGet_Language_Variant 0.001
testRandomGeneration 0.021
testToString 0.001
testSet_Language 0.001
testGet_Locale 0
testSet_Language_NullLanguage 0.001
testRemove_Locale_Null 0.001
testSet_Language_NullText 0.001
testGet_Language_Missing 0.001
testEqualsHash 0.001
testRemove_Language_Null 0.001
testSet_Locale_Multiple 0.001
testRemove_Locale_Multiple 0.001
testGet_Locale_Null 0.001
testSetDefaultText 0.001
testSet_Locale_NullLocale 0.001
testSetDefaultText_Null 0.001
testSetI18n_Empty 0
testIsEquivalent_I18nString_Other 0.002
testCopyConstructor_Null 0
testSet_Locale 0
testIsEquivalent_I18nStringMap 0
testRemove_Language_Multiple 0
testConstructor_Default 0
testSet_Locale_NullText 0.001
testSetI18n 0.001
testCopyConstructor_Resources 0.001
testGet_Language 0
testSerializable 0.006
testConstructor 0.001
testGet_Locale_Variant 0.001
testRemove_Locale 0.001

I18nFixedStringTest

testIsEquivalent 0.002
testDefaultGeneration 0.152
testAsMap 0.001
testFrom 0
testRandomGeneration 0.016
testToString 0.002
testEqualsHash 0.001
testIsEquivalent_I18nString_Other 0.002
testFrom_I18nString 0.001
testSerializable 0.002

I18nStringJacksonSerializationTest

testResourcesAsObjectContainer_I18nResourcesString 0.021
testMapContainer_Null 0.002
testFixedAsObjectContainer_I18nFixedString 0.002
testAsObjectContainer_I18nFixedString 0.001
testI18nStringMap 0.002
testContainer_I18nBilingualString 0.002
testContainer_I18nResourcesString 0.002
testContainer_I18nStringMap 0.001
testAsObjectContainer_I18nStringMap 0.001
testContainer_Null 0.002
testResourcesAsObjectContainer_Null 0.001
testAsObjectContainer_Null 0
testI18nResourcesString 0.001
testFixedContainer_Null 0.002
testI18nBilingual 0.001
testI18nFixedString 0.001
testMapAsObjectContainer_Null 0.001
testMapAsObjectContainer_I18nStringMap 0.001
testMapContainer_I18nStringMap 0.001
testResourcesContainer_Null 0.001
testContainer_I18nFixedString 0.001
testFixedContainer_I18nFixedString 0.001
testResourcesContainer_I18nResourcesString 0.002
testFixedAsObjectContainer_Null 0.001
testAsObjectContainer_I18nBilingualString 0.001
testAsObjectContainer_I18nResourcesString 0.002

I18nTest

testGetDefaultI18nResources 0.002
testSetLocale_Null 0.003
testGetAvailableLocales 0.001
testSetLocale 0.003
testGetLocale 0.002
testGetI18nResources 0.002

SizeValidatorForI18nStringTest

testConstructor 0.012
testIsTextValid_Random 0.001
testIsValid_Map_Translation_Blank 0.001
testIsValid_Map_Translation_Empty 0.002
testIsValid_Null 0.002
testIsValid_Blank 0.002
testIsValid_Empty 0.003
testIsTextValid_Blank 0.001
testIsTextValid_Empty 0.001
testIsValid_Map 0.003
testInitialize_MinGreaterThanMax 0.002
testInitialize 0.001
testInitialize_NegativeMax 0.001
testInitialize_NegativeMin 0.002
testIsValid_Map_Default_Blank 0.007
testIsValid_Map_Default_Empty 0.003
testIsTextValid_Max 0.001
testIsTextValid_Min 0.001
testIsTextValid_Null 0.001
testIsValid 0.001

I18nStringTest

testDefaultGeneration 0
testFixed 0
testRandomGeneration 0.021
testMapped 0.001
testForDefault 0.002

I18nStringEditorTest

testSetAsText_Null 0.001
testGetAsText_Null 0
testSetAsText 0
testGetAsText 0.001

ThreadI18nContextProviderTest

testEqualsHashCodeToString 0.005
testIsContextAlive_Null 0.001
testIsContextAlive_Same 0.002
testFactory 0
testInvalidate_Inheritable 0
testGetContext_Missing 0.025
testIsContextAlive 0.001
testClearContext_Inheritable 0.001
testIsContextAlive_WrongUUID 0.001
testConstructor_Inheritable 0
testGetContext_Invalid 0.002
testGetContext_Inheritable 0.001
testGetContext 0.001
testInvalidate 0
testClearContext 0.001
testConstructor 0.001

I18nStringJavaxJaxbSerializationTest

testResourcesAsObjectContainer_I18nResourcesString 0.841
testMapContainer_Null 0.005
testFixedAsObjectContainer_I18nFixedString 0.011
testAsObjectContainer_I18nFixedString 0.005
testContainer_I18nString 0.029
testContainer_I18nBilingualString 0.042
testContainer_I18nResourcesString 0.005
testContainer_I18nStringMap 0.07
testAsObjectContainer_I18nStringMap 0.006
testContainer_Null 0.003
testResourcesAsObjectContainer_Null 0.003
testAsObjectContainer_Null 0.003
testFixedContainer_Null 0.003
testMapAsObjectContainer_Null 0.003
testMapAsObjectContainer_I18nStringMap 0.005
testMapContainer_I18nStringMap 0.004
testResourcesContainer_Null 0.004
testContainer_I18nFixedString 0.004
testFixedContainer_I18nFixedString 0.004
testResourcesContainer_I18nResourcesString 0.004
testObjectFactory 0
testFixedAsObjectContainer_Null 0.003
testContainer_InvalidChars 0.003
testAsObjectContainer_I18nBilingualString 0.003
testAsObjectContainer_I18nResourcesString 0.004
testAsObjectContainer_I18nString 0.005

NotBlankValidatorForI18nStringTest

testInitialize 0.012
testConstructor 0.002
testIsTextValid_Random 0.001
testIsValid_Map_Translation_Blank 0.005
testIsValid_Map_Translation_Empty 0.002
testIsValid_Null 0
testIsValid_Blank 0.001
testIsValid_Empty 0
testIsTextValid_Blank 0
testIsTextValid_Empty 0
testIsValid_Map 0.002
testIsValid_Map_Default_Blank 0.002
testIsValid_Map_Default_Empty 0.002
testIsTextValid_Null 0.001
testIsValid 0.004

PatternValidatorForI18nStringTest

testConstructor 0.013
testIsTextValid_Random 0.002
testIsTextValid_CaseInsensitive 0.001
testIsValid_Map_Translation_Blank 0.002
testIsValid_Map_Translation_Empty 0.001
testInitialize_InvalidRegExp 0.001
testIsValid_Null 0.001
testIsValid_Blank 0.001
testIsValid_Empty 0.001
testIsValid_Map 0.002
testInitialize 0.001
testIsValid_Map_Default_Blank 0.003
testIsValid_Map_Default_Empty 0.001
testIsTextValid_Null 0.001
testIsValid 0.001
testIsTextValid_Digits 0

I18nContextProviderConfigurerTest

testSetI18nContextProvider_ClassLoader 0.002
testSetI18nContextProvider 0.001
testSetI18nConfiguration_ClassLoader 0.001
testSetI18nConfiguration 0.001

AbstractI18nContextProviderTest

testEqualsHashCodeToString 0.004
testAddI18nResources 0.022
testFactory 0.004
testCreateContext_Parent 0.001
testSetDefaultI18nResources 0.001
testCreateContext 0
testGetI18nResources_Missing 0.001
testCreateContext_Parent_Null 0.001
testGetI18nResources 0.001
testSetAvailableLocales 0.002
testInvalidate 0.001
testConstructor 0

ExceptionsTest

testI18nConfigurationException 0.001

EnableI18nContextHierarchyTest

testAfterPropertiesSet_Target_Spring 0.505

I18nContextTest

testGetDefaultI18nResources 0.002
testGetAvailableLocales 0.001
testGetI18nResources 0.001
testGetInstance 0.001

DummyI18nResourcesTest

testGetMessage_Locale_InvalidTemplate 0
testGetMessage_Formatted 0.001
testGetMessage_Locale_Codes_InvalidTemplate 0.001
testGetMessage_Locale_Codes 0
testGetMessage_Codes 0
testGetMessage_Locale_Formatted 0
testGetMessage 0
testGetMessage_Codes_Formatted 0
testGetMessage_Locale 0
testGetMessage_InvalidTemplate 0
testGetMessage_Codes_InvalidTemplate 0
testGetMessage_Locale_Codes_Formatted 0

I18nSpringContextTest

testEqualsHashCodeToString 0.016
testSetLocale_Null 0.001
testCopyConstructor 0.001
testConstructor_Null 0
testSetLocale 0
testCopyConstructor_Null 0.001
testSerializable 0.007
testConstructor 0

NotEmptyValidatorForI18nStringTest

testInitialize 0.009
testConstructor 0
testIsTextValid_Random 0.001
testIsValid_Map_Translation_Blank 0.002
testIsValid_Map_Translation_Empty 0.003
testIsValid_Null 0.001
testIsValid_Blank 0.001
testIsValid_Empty 0.001
testIsTextValid_Blank 0.001
testIsTextValid_Empty 0
testIsValid_Map 0.001
testIsValid_Map_Default_Blank 0.002
testIsValid_Map_Default_Empty 0.001
testIsTextValid_Null 0.001
testIsValid 0.001

I18nBundleResourcesTest

testGetMessage_Codes_Locale 0.033
testGetMessage_Code_Locale_NotFound 0.002
testGetMessage_Codes_NotFound 0.003
testGetMessage_Codes_Locale_InvalidTemplate 0.003
testGetMessage_Codes_Locale_NotFound 0.002
testForBasename 0.004
testGetMessage_Code_NotFound 0.002
testGetMessage_Codes_FoundFallback 0.003
testGetMessage_Code_Locale 0.002
testGetMessage_Code_Locale_InvalidTemplate 0.002
testGetMessage_Code 0.002
testGetMessage_Codes 0.003
testGetMessage_Code_InvalidTemplate 0.002
testGetMessage_Codes_Locale_FoundFallback 0.002
testGetMessage_Codes_InvalidTemplate 0.003
testConstructor 0.003

DefaultI18nContextTest

testEqualsHashCodeToString 0
testSetLocale_Null 0
testCopyConstructor 0
testConstructor_Null 0.001
testSetLocale 0
testCopyConstructor_Null 0.001
testSerializable 0.003
testConstructor 0

SharedI18nContextProviderTest

testEqualsHashCodeToString 0.005
testIsContextAlive 0.023
testGetContext 0.002
testClearContext 0.002
testConstructor 0.001

I18nSpringContextProviderTest

testConstructor_MessageSource_Inheritable_Null 0.002
testConstructor_MessageSource_Inheritable 0.004
testConstructor_Inheritable 0.002
testCreateContext_Parent 0.001
testCreateContext 0.003
testCreateContext_Parent_Null 0.001
testConstructor_MessageSource 0.001
testClearContext 0.001
testConstructor 0.001

I18nSpringWebConfigurationTest

testSetMessageSource 0.002
testDefaultConfigurer 0.001
testDetermineConfigurer 0.002
testCreateContextProvider 0.009
testAfterPropertiesSet_Target_Test 0.004
testSetApplicationContext 0.002
testSetImportMetadata 0.004
testAfterPropertiesSet_Target_Lib 0.004
testSetTarget 0.002
testAfterPropertiesSet 0.004
testAfterPropertiesSet_Target_Spring 0.003
testAfterPropertiesSet_Target_Thread 0.002
testConstructor 0.001
testI18NContextClearer 0.002

I18nResourcesStringTest

testConstructor_NullArg 0
testBuilderBuild_EmptyCodes 0.001
testGet_Language_Null 0.001
testIsEquivalent 0.002
testBuilderWithCodes_NullCodes 0.001
testBuilderWithCodes_Append 0.001
testConstructor_NullResources 0.001
testDefaultGeneration 0.001
testBuilderWithArgs_NullArgs 0
testBuilderWithCodes 0
testIsEquivalent_I18nResourcesString 0
testGet 0.001
testBuilderOfResources_Reset 0.001
testAsMap 0.001
testRandomGeneration 0.015
testToString 0.002
testGet_Locale 0.002
testBuilderWithCodes_NullCode 0.001
testBuilderWithCode_Multiple 0.001
testEqualsHash 0.001
testGetFormattedDefaultText 0
testConstructor_NoArgs 0
testBuilderWithArgs_NullArg 0.001
testBuilderOfResources_Null 0.001
testGet_Locale_Null 0.001
testBuilderWithArgs 0
testBuilderWithCode 0
testBuilderWithArg 0.001
testBuilderWithArg_Multiple 0.001
testBuilderWithArg_Null 0.001
testBuilderBuild_Min 0.001
testConstructor_NullDefault 0.001
testBuilderOfResources 0.001
testBuilderBuild 0.001
testConstructor_NullArgs 0.001
testConstructor_NullCode 0.001
testBuilderWithCode_Null 0.001
testIsEquivalent_I18nString_Other 0.002
testBuilderWithCodes_Varargs 0.001
testGet_Language 0.001
testSerializable 0.002
testBuilderWithArgs_Append 0.001
testForDefault 0.001
testBuilderWithArgs_Varargs 0.005
testConstructor 0
testConstructor_NullCodes 0

I18nStringJavaxJaxbDeserializationTest

testMapAsObjectContainer_String 0.534
testMapContainer_Null 0.01
testFixedContainer_String 0.009
testResourcesAsObjectContainer_I18nStringMap 0.015
testAsObjectContainer_String 0.01
testContainer_Full 0.009
testContainer_Null 0.007
testResourcesAsObjectContainer_Null 0.008
testAsObjectContainer_Full 0.008
testAsObjectContainer_Null 0.006
testMapContainer_String 0.006
testContainer_String 0.028
testResourcesContainer_String 0.01
testFixedContainer_Null 0.006
testResourcesContainer_I18nStringMap 0.017
testResourcesAsObjectContainer_String 0.007
testMapAsObjectContainer_Null 0.007
testMapAsObjectContainer_I18nStringMap 0.008
testMapContainer_I18nStringMap 0.007
testResourcesContainer_Null 0.006
testObjectFactory 0.001
testFixedContainer_I18nStringMap 0.008

AbstractValidatorForI18nStringTest

testIsValid_Map_DefaultInvalid 0.029
testIsValid_Null 0.001
testIsValid_Map 0.002
testInitialize 0.006
testIsValid_Map_TranslationInvalid2 0.002
testIsValid_Map_TranslationInvalid 0.001
testIsValid(boolean)[1] 0.001
testIsValid(boolean)[2] 0.001
testConstructor 0.001

I18nConfigurationTest

testLoad_NotFound 0.001
testGet 0.007
testSet 0.004
testLoad 0.001
testLoadConfiguration_ReadIOException 0
Disabled on JRE version: 17.0.12 ==> Works in JDK 11. Mock misbehaves in JDK 17+
testLoadConfiguration_MultipleFiles 0
Disabled on JRE version: 17.0.12 ==> Works in JDK 11. Mock misbehaves in JDK 17+
testLoad_IOException 0.026
testLoad_Inherited 0.001
testLoad_Overriden 0.002
testLoadConfiguration_ResourcesIOException 0
Disabled on JRE version: 17.0.12 ==> Works in JDK 11. Mock misbehaves in JDK 17+

I18nSpringResourcesTest

testGetMessage_Codes_Locale 0.029
testGetMessage_Code_Locale_NotFound 0.004
testGetMessage_Codes_NotFound 0.004
testGetMessage_Codes_Locale_InvalidTemplate 0.003
testGetMessage_Codes_Locale_NotFound 0.003
testConstructor_Null 0.001
testGetMessage_Code_NotFound 0.001
testGetMessage_Codes_FoundFallback 0.003
testGetMessage_Code_Locale 0.001
testGetMessage_Code_Locale_InvalidTemplate 0.002
testGetMessage_Code 0.002
testGetMessage_Codes 0.003
testGetMessage_Code_InvalidTemplate 0.002
testGetMessage_Codes_Locale_FoundFallback 0.002
testGetMessage_Codes_InvalidTemplate 0.002
testConstructor 0.001

Failure Details

[Summary] [Package List] [Test Cases]


testLoadConfiguration_ReadIOException
skipped: Disabled on JRE version: 17.0.12 ==> Works in JDK 11. Mock misbehaves in JDK 17+
testLoadConfiguration_MultipleFiles
skipped: Disabled on JRE version: 17.0.12 ==> Works in JDK 11. Mock misbehaves in JDK 17+
testLoadConfiguration_ResourcesIOException
skipped: Disabled on JRE version: 17.0.12 ==> Works in JDK 11. Mock misbehaves in JDK 17+