Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
89 0 0 7 92.135% 2.886

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
info.magnolia.i18nsystem.proxytoys 28 0 0 4 85.714% 0.213
info.magnolia.i18nsystem.util 13 0 0 0 100% 0.007
info.magnolia.i18nsystem.setup 8 0 0 0 100% 0.152
info.magnolia.i18nsystem 39 0 0 2 94.872% 2.514
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0

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

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
MethodsAnnotatedWithTest 4 0 0 0 100% 0.011
ProxytoysI18nizerTest 17 0 0 4 76.471% 0.199
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.003

info.magnolia.i18nsystem.util

Class Tests Errors Failures Skipped Success Rate Time
AnnotationUtilsTest 4 0 0 0 100% 0.005
GenericsUtilsTest 4 0 0 0 100% 0.001
LocaleUtilsTest 5 0 0 0 100% 0.001

info.magnolia.i18nsystem.setup

Class Tests Errors Failures Skipped Success Rate Time
AbstractRemoveHardcodedI18nPropertiesTaskTest 2 0 0 0 100% 0.14
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.006
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.006

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.437
DefaultMessageBundlesLoaderTest 2 0 0 0 100% 0.349
SimpleTranslatorTest 7 0 0 2 71.429% 0.028
TranslationServiceImplReloadBundlesTest 1 0 0 0 100% 0.498
TranslationServiceImplTest 19 0 0 0 100% 1.202

info.magnolia.i18nsystem.tools

Class Tests Errors Failures Skipped Success Rate Time
GenerateTranslationFilesImplTest 1 0 0 1 0% 0

Test Cases

[Summary] [Package List] [Test Cases]

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.376
getDifferentBundlenamesForEachChild 0.011
addKeyConsidersLabelAsAnOptionalSuffix 0.011
getNullBundlenameWhenNoneIsDefined 0.007
getRootBundlenameWhenNoOtherIsDefined 0.007
getIdOrNameForUnknownRoot 0.005
getRoot 0.005
ancestorsFromSimpleChain 0.003
getRootKeyGenerator 0.005
getAncestorKeyGenerators 0.007

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.254
bundlesLoaderLoadsAllLocales 0.095

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.009
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0.001
includesMethodOnInterface 0.001

ProxytoysI18nizerTest

decorateEnum 0.005
skipped
decorateWithNullObjectDoesNotThrowException 0.015
testWithSingleChildObject 0.012
testWithDeeperChildren 0.017
testSimpleObject 0.008
i18nTextAnnotationOnNonStringType 0.009
Currently makes no sense - un-ignore the day we find a real use-case
canFormatMessagesForMethodsWithArguments 0.009
Not implemented yet - not sure we want this
blowsIfCalledTwiceOnSameObject 0.008
decoratedMapShouldAllowToPutNewObjectsAndDecorateThem 0.008
Not implemented yet
decoratedObjectsCanBeClonedWithClonerLib 0.031
nullChildJustReturnsNull 0.007
testWithChildren 0.013
decorateChildWithNullObjectDoesNotThrowException 0.008
objectsClonedWithClonerLibCanBeDecorated 0.007
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.014
testWithChildrenInMap 0.017
testWithExistingValuesBeforeDecoration 0.011

ReturnsAnnotatedTypeArgumentTest

includesSimpleGetter 0
doesNotIncludeGetterWhereReturnTypeIsNotAnnotatedEvenIfMethodItselfIsAnnotated 0
includesMapOfAnnotatedTypeValues 0
includesInheritedMethods 0
includesListOfAnnotatedTypes 0
doesNotIncludeGetterWhereReturnTypeIsNotAnnotated 0
canNotIncludeMapOfAnnotatedTypeValues 0

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.139
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0.001

SimpleTranslatorTest

keyWithPrintfFormat 0.001
Ignored for now but I would like to support the printf format too eventually
singleKey 0.012
extraTestForConditionsAndPlurals 0.005
keyWithPrintfFormatMultipleArgs 0.006
Ignored for now but I would like to support the printf format too eventually
formatAccordingToLocale 0.003
keyWithMessageFormat 0.001
keyWithMessageFormatMultipleArgs 0

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplReloadBundlesTest

messageFoundAfterBundlesReload 0.498

TranslationServiceImplTest

messageWithBasenameAndLocale 0.073
messageNotFound 0.063
messageWithSwissGermanVariantLocale 0.063
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.056
messageFallsBackToClosestAvailableMessage 0.062
messageFallsBackToDefaultLanguage 0.064
messageWithFrenchLocale 0.063
givenBasenameFallbacksToDefautLegacy 0.077
messageWithNullKeys 0.06
messageWithBasename 0.055
messageWithSwissGermanLocale 0.055
shouldPreferUserLocaleWithSecondaryKey 0.117
messageNotFoundWithBasename 0.065
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.053
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.062
messageFallsBackToDefautLocaleFromAVariantLocale 0.058
messageFallsBackToAvailableMessageFromVariantToCountry 0.053
messageWithNoKeys 0.051
messageWithGermanLocale 0.052

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.004
getAnnotationWorksOnSubclass 0.001
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

GenericsUtilsTest

getGenericTypeOfReturnType 0.001
returnsObjectForWildcards 0
sanityChecks 0
returnsLowerBoundForExtends 0

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0

Failure Details

[Summary] [Package List] [Test Cases]


decorateEnum
skipped: skipped
i18nTextAnnotationOnNonStringType
skipped: Currently makes no sense - un-ignore the day we find a real use-case
canFormatMessagesForMethodsWithArguments
skipped: Not implemented yet - not sure we want this
decoratedMapShouldAllowToPutNewObjectsAndDecorateThem
skipped: Not implemented yet
keyWithPrintfFormat
skipped: Ignored for now but I would like to support the printf format too eventually
keyWithPrintfFormatMultipleArgs
skipped: Ignored for now but I would like to support the printf format too eventually
generateTranslationFilesAndEverythingElse
skipped: skipped