Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
473 0 0 3 99.366% 3.442

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% 0.382
dev.orne.i18n.jackson 63 0 0 0 100% 0.505
dev.orne.i18n.spring 67 0 0 0 100% 0.591
dev.orne.i18n 120 0 0 0 100% 1.177
dev.orne.i18n.context 100 0 0 3 97% 0.614
dev.orne.i18n.validation 75 0 0 0 100% 0.173

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
I18nStringJavaxJaxbDeserializationTest 22 0 0 0 100% 0.099
I18nStringJavaxJaxbSerializationTest 26 0 0 0 100% 0.283

dev.orne.i18n.jackson

Class Tests Errors Failures Skipped Success Rate Time
I18nStringJacksonDeserializationTest 37 0 0 0 100% 0.468
I18nStringJacksonSerializationTest 26 0 0 0 100% 0.037

dev.orne.i18n.spring

Class Tests Errors Failures Skipped Success Rate Time
I18nSpringContextProviderTest 9 0 0 0 100% 0.011
EnableI18nContextHierarchyTest 1 0 0 0 100% 0.312
I18nSpringConfigurationTest 13 0 0 0 100% 0.023
I18nSpringConfigurationSelectorTest 5 0 0 0 100% 0.043
I18nSpringWebConfigurationTest 14 0 0 0 100% 0.147
I18nSpringResourcesTest 16 0 0 0 100% 0.026
I18nSpringWebContextClearerTest 1 0 0 0 100% 0.015
I18nSpringContextTest 8 0 0 0 100% 0.014

dev.orne.i18n

Class Tests Errors Failures Skipped Success Rate Time
ExceptionsTest 1 0 0 0 100% 0.055
I18nStringTest 5 0 0 0 100% 0.146
I18nStringMapEditorTest 4 0 0 0 100% 0.023
I18nFixedStringTest 10 0 0 0 100% 0.02
I18nTest 6 0 0 0 100% 0.801
I18nResourcesStringTest 46 0 0 0 100% 0.069
I18nStringEditorTest 4 0 0 0 100% 0.004
I18nStringMapTest 44 0 0 0 100% 0.059

dev.orne.i18n.context

Class Tests Errors Failures Skipped Success Rate Time
I18nContextProviderRegistryTest 7 0 0 0 100% 0.054
AbstractI18nContextProviderTest 18 0 0 0 100% 0.069
I18nBundleResourcesTest 16 0 0 0 100% 0.108
DefaultI18nContextTest 8 0 0 0 100% 0.031
ThreadI18nContextProviderTest 16 0 0 0 100% 0.071
SharedI18nContextProviderTest 5 0 0 0 100% 0.038
DummyI18nResourcesTest 12 0 0 0 100% 0.019
I18nConfigurationTest 10 0 0 3 70% 0.109
I18nContextTest 4 0 0 0 100% 0.014
I18nContextProviderConfigurerTest 4 0 0 0 100% 0.101

dev.orne.i18n.validation

Class Tests Errors Failures Skipped Success Rate Time
NotEmptyValidatorForI18nStringTest 15 0 0 0 100% 0.036
AbstractValidatorForI18nStringTest 9 0 0 0 100% 0.034
PatternValidatorForI18nStringTest 16 0 0 0 100% 0.032
SizeValidatorForI18nStringTest 20 0 0 0 100% 0.047
NotBlankValidatorForI18nStringTest 15 0 0 0 100% 0.024

Test Cases

[Summary] [Package List] [Test Cases]

I18nStringJavaxJaxbDeserializationTest

testMapAsObjectContainer_String 0.016
testMapContainer_Null 0.004
testFixedContainer_String 0.003
testResourcesAsObjectContainer_I18nStringMap 0.006
testAsObjectContainer_String 0.004
testContainer_Full 0.005
testContainer_Null 0.003
testResourcesAsObjectContainer_Null 0.004
testAsObjectContainer_Full 0.004
testAsObjectContainer_Null 0.004
testMapContainer_String 0.003
testContainer_String 0.003
testResourcesContainer_String 0.004
testFixedContainer_Null 0.003
testResourcesContainer_I18nStringMap 0.004
testResourcesAsObjectContainer_String 0.004
testMapAsObjectContainer_Null 0.003
testMapAsObjectContainer_I18nStringMap 0.004
testMapContainer_I18nStringMap 0.004
testResourcesContainer_Null 0.004
testObjectFactory 0
testFixedContainer_I18nStringMap 0.004

NotEmptyValidatorForI18nStringTest

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

I18nStringJacksonDeserializationTest

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

I18nStringJavaxJaxbSerializationTest

testResourcesAsObjectContainer_I18nResourcesString 0.157
testMapContainer_Null 0.004
testFixedAsObjectContainer_I18nFixedString 0.004
testAsObjectContainer_I18nFixedString 0.004
testContainer_I18nString 0.004
testContainer_I18nBilingualString 0.023
testContainer_I18nResourcesString 0.003
testContainer_I18nStringMap 0.023
testAsObjectContainer_I18nStringMap 0.004
testContainer_Null 0.003
testResourcesAsObjectContainer_Null 0.003
testAsObjectContainer_Null 0.003
testFixedContainer_Null 0.003
testMapAsObjectContainer_Null 0.003
testMapAsObjectContainer_I18nStringMap 0.004
testMapContainer_I18nStringMap 0.005
testResourcesContainer_Null 0.002
testContainer_I18nFixedString 0.002
testFixedContainer_I18nFixedString 0.003
testResourcesContainer_I18nResourcesString 0.004
testObjectFactory 0
testFixedAsObjectContainer_Null 0.003
testContainer_InvalidChars 0.002
testAsObjectContainer_I18nBilingualString 0.003
testAsObjectContainer_I18nResourcesString 0.003
testAsObjectContainer_I18nString 0.003

I18nContextProviderRegistryTest

testConfigure_Missing 0.001
testConfigure_Default(Path) 0.024
testConfigure_Properties(Path) 0.003
testSet 0.002
testConfigure_NoType(Path) 0.004
testConfigure_Shared(Path) 0.003
testConfigure(Path) 0.003

AbstractValidatorForI18nStringTest

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

AbstractI18nContextProviderTest

testEqualsHashCodeToString 0.004
testFactory_MultipleNamedResources 0.002
testAddI18nResources 0.028
testFactory_MissingNamedResources 0.001
testFactory_DefaultResources 0
testFactory_Empty 0
testFactory_NamedResources 0
testFactory_MissingDefaultResources 0
testCreateContext_Parent 0.001
testSetDefaultI18nResources 0.002
testCreateContext 0.001
testGetI18nResources_Missing 0.001
testCreateContext_Parent_Null 0.002
testGetI18nResources 0.001
testFactory_AvailableLocales 0.013
testSetAvailableLocales 0.002
testInvalidate 0.001
testConstructor 0.001

I18nSpringContextProviderTest

testConstructor_MessageSource_Inheritable_Null 0.001
testConstructor_MessageSource_Inheritable 0
testConstructor_Inheritable 0.001
testCreateContext_Parent 0.002
testCreateContext 0.001
testCreateContext_Parent_Null 0
testConstructor_MessageSource 0.001
testClearContext 0.001
testConstructor 0.001

PatternValidatorForI18nStringTest

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

I18nBundleResourcesTest

testGetMessage_Codes_Locale 0.061
testGetMessage_Code_Locale_NotFound 0.002
testGetMessage_Codes_NotFound 0.004
testGetMessage_Codes_Locale_InvalidTemplate 0.003
testGetMessage_Codes_Locale_NotFound 0.003
testForBasename 0.005
testGetMessage_Code_NotFound 0.002
testGetMessage_Codes_FoundFallback 0.002
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.003
testConstructor 0.002

SizeValidatorForI18nStringTest

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

ExceptionsTest

testI18nConfigurationException 0.034

I18nStringTest

testDefaultGeneration 0.105
testFixed 0
testRandomGeneration 0.035
testMapped 0
testForDefault 0.002

DefaultI18nContextTest

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

ThreadI18nContextProviderTest

testEqualsHashCodeToString 0.006
testIsContextAlive_Null 0.003
testIsContextAlive_Same 0.001
testFactory 0.002
testInvalidate_Inheritable 0
testGetContext_Missing 0.04
testIsContextAlive 0.001
testClearContext_Inheritable 0.002
testIsContextAlive_WrongUUID 0.001
testConstructor_Inheritable 0.001
testGetContext_Invalid 0.002
testGetContext_Inheritable 0.001
testGetContext 0.002
testInvalidate 0.001
testClearContext 0.001
testConstructor 0.001

SharedI18nContextProviderTest

testEqualsHashCodeToString 0.004
testIsContextAlive 0.029
testGetContext 0.001
testClearContext 0.001
testConstructor 0

EnableI18nContextHierarchyTest

testAfterPropertiesSet_Target_Spring 0.311

I18nStringMapEditorTest

testSetAsText_Null 0.014
testGetAsText_Null 0
testSetAsText 0.006
testGetAsText 0.001

DummyI18nResourcesTest

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

I18nSpringConfigurationTest

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

I18nSpringConfigurationSelectorTest

testSpringWebConfigurationSelection(boolean)[1] 0.008
testSpringWebConfigurationSelection(boolean)[2] 0.001
testNoSpringWebConfigurationSelection(boolean)[1] 0.001
testNoSpringWebConfigurationSelection(boolean)[2] 0
testDefaultConstructor 0.001

I18nFixedStringTest

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

I18nTest

testGetDefaultI18nResources 0.779
testSetLocale_Null 0.008
testGetAvailableLocales 0.003
testSetLocale 0.003
testGetLocale 0.002
testGetI18nResources 0.002

I18nSpringWebConfigurationTest

testSetMessageSource 0.042
testDefaultConfigurer 0.002
testDetermineConfigurer 0.012
testCreateContextProvider 0.024
testAfterPropertiesSet_Target_Test 0.024
testSetApplicationContext 0.001
testSetImportMetadata 0.027
testAfterPropertiesSet_Target_Lib 0.002
testSetTarget 0.001
testAfterPropertiesSet 0.002
testAfterPropertiesSet_Target_Spring 0.003
testAfterPropertiesSet_Target_Thread 0.001
testConstructor 0.001
testI18NContextClearer 0.001

I18nStringJacksonSerializationTest

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

I18nConfigurationTest

testLoad_NotFound 0
testGet(Path) 0.002
testSet(Path,Path,Path,Path,Path,Path) 0.004
testLoad(Path) 0.001
testLoadConfiguration_ReadIOException(Path) 0
Disabled on JRE version: 17.0.18 ==> Works in JDK 11. Mock misbehaves in JDK 17+
testLoadConfiguration_MultipleFiles(Path) 0
Disabled on JRE version: 17.0.18 ==> Works in JDK 11. Mock misbehaves in JDK 17+
testLoad_IOException 0.086
testLoad_Inherited(Path) 0.002
testLoad_Overriden(Path,Path) 0.004
testLoadConfiguration_ResourcesIOException(Path) 0
Disabled on JRE version: 17.0.18 ==> Works in JDK 11. Mock misbehaves in JDK 17+

I18nContextTest

testGetDefaultI18nResources 0.004
testGetAvailableLocales 0.002
testGetI18nResources 0.003
testGetInstance 0.002

I18nResourcesStringTest

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

I18nStringEditorTest

testSetAsText_Null 0.001
testGetAsText_Null 0
testSetAsText 0.001
testGetAsText 0.001

I18nSpringResourcesTest

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

NotBlankValidatorForI18nStringTest

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

I18nSpringWebContextClearerTest

testClearContext 0.014

I18nStringMapTest

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

I18nContextProviderConfigurerTest

testSetI18nContextProvider_ClassLoader 0.08
testSetI18nContextProvider 0.001
testSetI18nConfiguration_ClassLoader 0.001
testSetI18nConfiguration 0.001

I18nSpringContextTest

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

Failure Details

[Summary] [Package List] [Test Cases]


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