Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.13
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.236
info.magnolia.i18nsystem 51 0 0 4 92.157% 2.83
info.magnolia.i18nsystem.bytebudddy 19 0 0 4 78.947% 3.027
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.047

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.123
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.007

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.04
ChildDecoratorTest 4 0 0 0 100% 0.015
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.007
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.174

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 0.078
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.091
TranslationServiceImplTest 25 0 0 0 100% 2.515
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.058
SimpleTranslatorTest 8 0 0 2 75% 0.088

info.magnolia.i18nsystem.bytebudddy

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

info.magnolia.i18nsystem.util

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

Test Cases

[Summary] [Package List] [Test Cases]

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.04
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0
includesMethodOnInterface 0

DefaultMessageBundlesLoaderReloadTest

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

ChildDecoratorTest

decorateList 0.001
decoratedListIsModifiable 0
decorateCollection 0.003
decorateMap 0.011

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.122
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0
removeHardcodedI18nPropertiesUnderAppNode 0
leaveOtherPropertiesAlone 0

ByteBuddyI18nizerTest

methodAnnotatedInADeepSuperInterface 2.17
doesNotConflictWithCGLib 0.134
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.07
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.101
blowsIfObjectIsAlreadyProxiedByI18nizer 0.071
testWithDeeperChildren 0.071
testSimpleObject 0.059
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.044
nullChildJustReturnsNull 0.027
testWithChildren 0.039
objectsClonedWithClonerLibCanBeDecorated 0.048
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.011
testWithChildrenInMap 0.063
testWithExistingValuesBeforeDecoration 0.119

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.001

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0.012
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 0

DefaultMessageBundlesLoaderTest

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

GenericsUtilsTest

getGenericTypeOfReturnType 0
returnsObjectForWildcards 0
sanityChecks 0.027
returnsLowerBoundForExtends 0

ReturnsAnnotatedTypeArgumentTest

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

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.003
blowsIfObjectIsAlreadyProxiedByI18nizer 0.003
testWithDeeperChildren 0.008
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.064
nullChildJustReturnsNull 0.001
testWithChildren 0.029
objectsClonedWithClonerLibCanBeDecorated 0.011
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.047
testWithChildrenInMap 0.003
testWithExistingValuesBeforeDecoration 0.002

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.005
getAnnotationWorksOnSubclass 0.002
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0.001
resolveLocaleReturnsDefaultLocale 0

TranslationServiceImplTest

messageWithBasenameAndLocale 0.828
nullKey 0.024
messageNotFound 0.023
messageWithSwissGermanVariantLocale 0.016
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.038
messageFallsBackToClosestAvailableMessage 0.034
debugNewI18n 0.197
messageFallsBackToDefaultLanguage 0.21
messageWithFrenchLocale 0.051
debugNewI18nMissingTranslation 0.05
debugOldI18n 0.045
messageWithNullKeys 0.998
messageWithBasename 0
messageWithSwissGermanLocale 0
shouldPreferUserLocaleWithSecondaryKey 0
messageNotFoundWithBasename 0
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.001
handleLegacyTranslationSanitation 0
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0
messageFallsBackToDefautLocaleFromAVariantLocale 0
messageFallsBackToAvailableMessageFromVariantToCountry 0
messageWithNoKeys 0
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0
messageWithGermanLocale 0
givenBasenameFallbacksToDefaultLegacy 0

AbstractI18nKeyGeneratorTest

ancestorsFromList 0
getDifferentBundlenamesForEachChild 0.024
addKeyConsidersLabelAsAnOptionalSuffix 0.005
getNullBundlenameWhenNoneIsDefined 0.004
getRootBundlenameWhenNoOtherIsDefined 0.004
getIdOrNameForUnknownRoot 0.003
getRoot 0.003
ancestorsFromSimpleChain 0.003
getRootKeyGenerator 0.008
getAncestorKeyGenerators 0.004

SimpleTranslatorTest

keyWithPrintfFormat 0
Ignored for now but I would like to support the printf format too eventually
singleKey 0.048
extraTestForConditionsAndPlurals 0.005
keyWithPrintfFormatMultipleArgs 0
Ignored for now but I would like to support the printf format too eventually
testTranslateShouldNotFailOnInvalidI18nMessage 0.003
formatAccordingToLocale 0.03
keyWithMessageFormat 0.001
keyWithMessageFormatMultipleArgs 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