Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
132 0 0 13 90.152% 2.523

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.053
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.039
info.magnolia.i18nsystem 54 0 0 4 92.593% 0.675
info.magnolia.i18nsystem.bytebudddy 20 0 0 4 80% 1.752
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.004

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

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

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 0.069
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.024
TranslationServiceImplTest 25 0 0 0 100% 0.514
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.05
SimpleTranslatorTest 8 0 0 2 75% 0.016
I18nKeyGeneratorFactoryTest 3 0 0 0 100% 0.002

info.magnolia.i18nsystem.bytebudddy

Class Tests Errors Failures Skipped Success Rate Time
ByteBuddyI18nizerTest 20 0 0 4 80% 1.752

info.magnolia.i18nsystem.util

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

Test Cases

[Summary] [Package List] [Test Cases]

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.002
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0
includesMethodOnInterface 0

DefaultMessageBundlesLoaderReloadTest

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

ChildDecoratorTest

decorateList 0.003
decoratedListIsModifiable 0
decorateCollection 0.002
decorateMap 0.005

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.042
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.001
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0.001

ByteBuddyI18nizerTest

methodAnnotatedInADeepSuperInterface 1.322
istInsideOfParametrisedType 0.056
doesNotConflictWithCGLib 0.059
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.022
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.053
blowsIfObjectIsAlreadyProxiedByI18nizer 0.023
testWithDeeperChildren 0.034
testSimpleObject 0.012
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.02
nullChildJustReturnsNull 0.014
testWithChildren 0.017
objectsClonedWithClonerLibCanBeDecorated 0.013
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.006
testWithChildrenInMap 0.018
testWithExistingValuesBeforeDecoration 0.016

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0.001
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 0

DefaultMessageBundlesLoaderTest

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

GenericsUtilsTest

getGenericTypeOfReturnType 0.001
returnsObjectForWildcards 0
sanityChecks 0
returnsLowerBoundForExtends 0.001

ReturnsAnnotatedTypeArgumentTest

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

ProxytoysI18nizerTest

decorateChildWithNullObjectDoesNotThrowException 0
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
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.001
blowsIfObjectIsAlreadyProxiedByI18nizer 0.001
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.002
objectsClonedWithClonerLibCanBeDecorated 0.001
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.005
testWithChildrenInMap 0.001
testWithExistingValuesBeforeDecoration 0.001

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0
getAnnotationWorksOnSubclass 0.001
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0

TranslationServiceImplTest

messageWithBasenameAndLocale 0.288
nullKey 0.01
messageNotFound 0.008
messageWithSwissGermanVariantLocale 0.008
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.012
messageFallsBackToClosestAvailableMessage 0.01
debugNewI18n 0.009
messageFallsBackToDefaultLanguage 0.008
messageWithFrenchLocale 0.007
debugNewI18nMissingTranslation 0.008
debugOldI18n 0.022
messageWithNullKeys 0.007
messageWithBasename 0.009
messageWithSwissGermanLocale 0.007
shouldPreferUserLocaleWithSecondaryKey 0.007
messageNotFoundWithBasename 0.011
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.008
handleLegacyTranslationSanitation 0.011
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.009
messageFallsBackToDefautLocaleFromAVariantLocale 0.007
messageFallsBackToAvailableMessageFromVariantToCountry 0.007
messageWithNoKeys 0.006
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.018
messageWithGermanLocale 0.007
givenBasenameFallbacksToDefaultLegacy 0.008

AbstractI18nKeyGeneratorTest

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

SimpleTranslatorTest

keyWithPrintfFormat 0
Ignored for now but I would like to support the printf format too eventually
singleKey 0.007
extraTestForConditionsAndPlurals 0.004
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

I18nKeyGeneratorFactoryTest

newKeyGeneratorFor 0
multipleAnnotationsInHierarchy 0.001
multipleGeneratorsInHierarchy 0.001

Failure Details

[Summary] [Package List] [Test Cases]


whenEncounteringDuplicateKeyTheFirstValueIsUsed
skipped: Ignored until MAGNOLIA-6927 is fixed: potential issues related to OS
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
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
generateTranslationFilesAndEverythingElse
skipped: skipped
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