Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
128 0 0 13 89.844% 1.974

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.054
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem 51 0 0 4 92.157% 1.219
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.071
info.magnolia.i18nsystem.bytebudddy 19 0 0 4 78.947% 0.604
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.026

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.044
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.005
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.005

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% 0.525
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 0.261
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.077
SimpleTranslatorTest 8 0 0 2 75% 0.02
TranslationServiceImplTest 25 0 0 0 100% 0.336

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
ChildDecoratorTest 4 0 0 0 100% 0.034
MethodsAnnotatedWithTest 4 0 0 0 100% 0.004
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.032
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.001

info.magnolia.i18nsystem.bytebudddy

Class Tests Errors Failures Skipped Success Rate Time
ByteBuddyI18nizerTest 19 0 0 4 78.947% 0.604

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.02
MessageFormatterUtilsTest 3 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.46
getDifferentBundlenamesForEachChild 0.008
addKeyConsidersLabelAsAnOptionalSuffix 0.007
getNullBundlenameWhenNoneIsDefined 0.003
getRootBundlenameWhenNoOtherIsDefined 0.002
getIdOrNameForUnknownRoot 0.004
getRoot 0.002
ancestorsFromSimpleChain 0.001
getRootKeyGenerator 0.001
getAncestorKeyGenerators 0.006

ByteBuddyI18nizerTest

methodAnnotatedInADeepSuperInterface 0.356
doesNotConflictWithCGLib 0.04
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.027
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.026
blowsIfObjectIsAlreadyProxiedByI18nizer 0.029
testWithDeeperChildren 0.025
testSimpleObject 0.011
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.015
nullChildJustReturnsNull 0.01
testWithChildren 0.015
objectsClonedWithClonerLibCanBeDecorated 0.01
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.004
testWithChildrenInMap 0.015
testWithExistingValuesBeforeDecoration 0.013

DefaultMessageBundlesLoaderReloadTest

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

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.052
sanitiseHtmlContent 0.009
bundlesLoaderLoadsAllLocales 0.008
doesNotSanitiseFormattingRelatedHtmlContent 0.007
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation 0
Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42

ChildDecoratorTest

decorateList 0.01
decoratedListIsModifiable 0.001
decorateCollection 0.001
decorateMap 0.018

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.003
doesNotIncludeOtherRandomMethod 0
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.001
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.002
blowsIfObjectIsAlreadyProxiedByI18nizer 0.003
testWithDeeperChildren 0.003
testSimpleObject 0.001
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.01
nullChildJustReturnsNull 0.001
testWithChildren 0.001
objectsClonedWithClonerLibCanBeDecorated 0.003
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.003
testWithChildrenInMap 0.001
testWithExistingValuesBeforeDecoration 0.001

ReturnsAnnotatedTypeArgumentTest

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

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.043
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.003
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.003
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0

SimpleTranslatorTest

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

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplTest

messageWithBasenameAndLocale 0.02
nullKey 0.012
messageNotFound 0.014
messageWithSwissGermanVariantLocale 0.014
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.023
messageFallsBackToClosestAvailableMessage 0.01
debugNewI18n 0.011
messageFallsBackToDefaultLanguage 0.01
messageWithFrenchLocale 0.024
debugNewI18nMissingTranslation 0.009
debugOldI18n 0.015
messageWithNullKeys 0.008
messageWithBasename 0.019
messageWithSwissGermanLocale 0.014
shouldPreferUserLocaleWithSecondaryKey 0.01
messageNotFoundWithBasename 0.013
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.011
handleLegacyTranslationSanitation 0.008
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.009
messageFallsBackToDefautLocaleFromAVariantLocale 0.006
messageFallsBackToAvailableMessageFromVariantToCountry 0.008
messageWithNoKeys 0.015
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.017
messageWithGermanLocale 0.009
givenBasenameFallbacksToDefaultLegacy 0.017

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.003
getAnnotationWorksOnSubclass 0
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0.001

GenericsUtilsTest

getGenericTypeOfReturnType 0
returnsObjectForWildcards 0
sanityChecks 0
returnsLowerBoundForExtends 0

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 0

Failure Details

[Summary] [Package List] [Test Cases]


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
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