Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem.setup 8 0 0 0 100% 0.176
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.659
info.magnolia.i18nsystem 51 0 0 4 92.157% 3.934
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.025

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

info.magnolia.i18nsystem.tools

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

info.magnolia.i18nsystem.setup

Class Tests Errors Failures Skipped Success Rate Time
AbstractRemoveHardcodedI18nPropertiesTaskTest 2 0 0 0 100% 0.007
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.143
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.026

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.628
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.003
MethodsAnnotatedWithTest 4 0 0 0 100% 0.008
ChildDecoratorTest 4 0 0 0 100% 0.02

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 2.399
TranslationServiceImplTest 25 0 0 0 100% 1.026
SimpleTranslatorTest 8 0 0 2 75% 0.085
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.117
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.307

info.magnolia.i18nsystem.util

Class Tests Errors Failures Skipped Success Rate Time
MessageFormatterUtilsTest 3 0 0 0 100% 0.009
GenericsUtilsTest 4 0 0 0 100% 0.011
AnnotationUtilsTest 4 0 0 0 100% 0.005
LocaleUtilsTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0
invalidMessageWithSingleQuotes 0.001
validMessageWithDoubledSingleQuote 0.008

ProxytoysI18nizerTest

decorateChildWithNullObjectDoesNotThrowException 0.018
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.311
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.065
blowsIfObjectIsAlreadyProxiedByI18nizer 0.023
testWithDeeperChildren 0.081
testSimpleObject 0.003
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.077
nullChildJustReturnsNull 0.001
testWithChildren 0.017
objectsClonedWithClonerLibCanBeDecorated 0.002
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.01
testWithChildrenInMap 0.014
testWithExistingValuesBeforeDecoration 0.006

DefaultMessageBundlesLoaderReloadTest

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

TranslationServiceImplTest

messageWithBasenameAndLocale 0.078
nullKey 0.066
messageNotFound 0.025
messageWithSwissGermanVariantLocale 0.025
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.02
messageFallsBackToClosestAvailableMessage 0.013
debugNewI18n 0.045
messageFallsBackToDefaultLanguage 0.061
messageWithFrenchLocale 0.041
debugNewI18nMissingTranslation 0.05
debugOldI18n 0.065
messageWithNullKeys 0.044
messageWithBasename 0.039
messageWithSwissGermanLocale 0.011
shouldPreferUserLocaleWithSecondaryKey 0.014
messageNotFoundWithBasename 0.021
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.018
handleLegacyTranslationSanitation 0.023
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.024
messageFallsBackToDefautLocaleFromAVariantLocale 0.04
messageFallsBackToAvailableMessageFromVariantToCountry 0.035
messageWithNoKeys 0.05
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.138
messageWithGermanLocale 0.035
givenBasenameFallbacksToDefaultLegacy 0.045

ReturnsAnnotatedTypeArgumentTest

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

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.007
doesNotIncludeOtherRandomMethod 0.001
includesMethodOnSelf 0
includesMethodOnInterface 0

GenericsUtilsTest

getGenericTypeOfReturnType 0
returnsObjectForWildcards 0.009
sanityChecks 0.002
returnsLowerBoundForExtends 0

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.003
leaveOtherPropertiesAlone 0.004

SimpleTranslatorTest

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

ChildDecoratorTest

decorateList 0.011
decoratedListIsModifiable 0.001
decorateCollection 0.002
decorateMap 0.006

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.004
getAnnotationWorksOnSubclass 0.001
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.133
removeHardcodedI18nPropertiesUnderAppNode 0
leaveOtherPropertiesAlone 0.01

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.002
getDifferentBundlenamesForEachChild 0.022
addKeyConsidersLabelAsAnOptionalSuffix 0.002
getNullBundlenameWhenNoneIsDefined 0.025
getRootBundlenameWhenNoOtherIsDefined 0.025
getIdOrNameForUnknownRoot 0.004
getRoot 0.019
ancestorsFromSimpleChain 0
getRootKeyGenerator 0.014
getAncestorKeyGenerators 0.004

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.138
sanitiseHtmlContent 0.035
bundlesLoaderLoadsAllLocales 0.087
doesNotSanitiseFormattingRelatedHtmlContent 0.047
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation 0
Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.022
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.002

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
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
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation
skipped: Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42