Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
109 0 0 9 91.743% 4.351

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.setup 8 0 0 0 100% 0.211
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem 51 0 0 4 92.157% 3.843
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.277
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.02

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

info.magnolia.i18nsystem.setup

Class Tests Errors Failures Skipped Success Rate Time
AbstractRemoveHardcodedI18nPropertiesTaskTest 2 0 0 0 100% 0.191
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.009
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.011

info.magnolia.i18nsystem.tools

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

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 1.661
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 0.797
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.347
SimpleTranslatorTest 8 0 0 2 75% 0.042
TranslationServiceImplTest 25 0 0 0 100% 0.996

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
ChildDecoratorTest 4 0 0 0 100% 0.076
MethodsAnnotatedWithTest 4 0 0 0 100% 0.01
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.184
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.007

info.magnolia.i18nsystem.util

Class Tests Errors Failures Skipped Success Rate Time
AnnotationUtilsTest 4 0 0 0 100% 0.007
GenericsUtilsTest 4 0 0 0 100% 0.006
LocaleUtilsTest 5 0 0 0 100% 0.005
MessageFormatterUtilsTest 3 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

AbstractI18nKeyGeneratorTest

ancestorsFromList 1.577
getDifferentBundlenamesForEachChild 0.026
addKeyConsidersLabelAsAnOptionalSuffix 0.018
getNullBundlenameWhenNoneIsDefined 0.006
getRootBundlenameWhenNoOtherIsDefined 0.006
getIdOrNameForUnknownRoot 0.007
getRoot 0.003
ancestorsFromSimpleChain 0.002
getRootKeyGenerator 0.004
getAncestorKeyGenerators 0.012

DefaultMessageBundlesLoaderReloadTest

makeSureMessagesAreAlsoRemovedWhenUnderlyingFileIsRemoved 0.759
whenEncounteringDuplicateKeyTheFirstValueIsUsed 0
Ignored until MAGNOLIA-6927 is fixed: potential issues related to OS
makeSureBundlesAreReloadedWhenResourcesChange 0.038

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.231
sanitiseHtmlContent 0.034
bundlesLoaderLoadsAllLocales 0.039
doesNotSanitiseFormattingRelatedHtmlContent 0.043
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation 0
Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42

ChildDecoratorTest

decorateList 0.05
decoratedListIsModifiable 0.002
decorateCollection 0.002
decorateMap 0.022

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.009
doesNotIncludeOtherRandomMethod 0.001
includesMethodOnSelf 0
includesMethodOnInterface 0

ProxytoysI18nizerTest

decorateChildWithNullObjectDoesNotThrowException 0.001
decorateEnum 0
currently can't proxy enums because they're final. The use-case would be to provide 'typed' static messages; maybe we can have another api, e.g SimpleTranslator - see MAGNOLIA-5296
i18nizerCanProxyIfObjectAlreadyProxiedBySthgElse 0.026
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.004
blowsIfObjectIsAlreadyProxiedByI18nizer 0.019
testWithDeeperChildren 0.042
testSimpleObject 0.002
i18nTextAnnotationOnNonStringType 0
Currently makes no sense - un-ignore the day we find a real use-case
canFormatMessagesForMethodsWithArguments 0
Not implemented yet - not sure we want this
decoratedMapShouldAllowToPutNewObjectsAndDecorateThem 0
Not implemented yet
decoratedObjectsCanBeClonedWithClonerLib 0.038
nullChildJustReturnsNull 0.001
testWithChildren 0.012
objectsClonedWithClonerLibCanBeDecorated 0
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.033
testWithChildrenInMap 0.003
testWithExistingValuesBeforeDecoration 0.003

ReturnsAnnotatedTypeArgumentTest

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

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.188
leaveOtherPropertiesAlone 0.003

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.005
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.002

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.006
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.003

SimpleTranslatorTest

keyWithPrintfFormat 0
Ignored for now but I would like to support the printf format too eventually
singleKey 0.017
extraTestForConditionsAndPlurals 0.014
keyWithPrintfFormatMultipleArgs 0
Ignored for now but I would like to support the printf format too eventually
testTranslateShouldNotFailOnInvalidI18nMessage 0.002
formatAccordingToLocale 0.006
keyWithMessageFormat 0.001
keyWithMessageFormatMultipleArgs 0.002

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplTest

messageWithBasenameAndLocale 0.097
nullKey 0.058
messageNotFound 0.06
messageWithSwissGermanVariantLocale 0.037
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.045
messageFallsBackToClosestAvailableMessage 0.065
debugNewI18n 0.046
messageFallsBackToDefaultLanguage 0.024
messageWithFrenchLocale 0.047
debugNewI18nMissingTranslation 0.02
debugOldI18n 0.031
messageWithNullKeys 0.02
messageWithBasename 0.016
messageWithSwissGermanLocale 0.02
shouldPreferUserLocaleWithSecondaryKey 0.017
messageNotFoundWithBasename 0.047
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.019
handleLegacyTranslationSanitation 0.048
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.034
messageFallsBackToDefautLocaleFromAVariantLocale 0.014
messageFallsBackToAvailableMessageFromVariantToCountry 0.015
messageWithNoKeys 0.017
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.043
messageWithGermanLocale 0.111
givenBasenameFallbacksToDefaultLegacy 0.045

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.005
getAnnotationWorksOnSubclass 0.001
getAnnotationWorksOnInterface 0.001
getAnnotationWorksOnClassDirectlyAnnotated 0

GenericsUtilsTest

getGenericTypeOfReturnType 0.003
returnsObjectForWildcards 0
sanityChecks 0.001
returnsLowerBoundForExtends 0.002

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0.002
resolveLocaleReturnsLanguageCountryLocale 0.002
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0.001

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0.001
invalidMessageWithSingleQuotes 0.001
validMessageWithDoubledSingleQuote 0

Failure Details

[Summary] [Package List] [Test Cases]


whenEncounteringDuplicateKeyTheFirstValueIsUsed
skipped: Ignored until MAGNOLIA-6927 is fixed: potential issues related to OS
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation
skipped: Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42
decorateEnum
skipped: currently can't proxy enums because they're final. The use-case would be to provide 'typed' static messages; maybe we can have another api, e.g SimpleTranslator - see MAGNOLIA-5296
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