Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.171
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.465
info.magnolia.i18nsystem 51 0 0 4 92.157% 3.293
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.035

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.156
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.008

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.439
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.009
MethodsAnnotatedWithTest 4 0 0 0 100% 0.006
ChildDecoratorTest 4 0 0 0 100% 0.011

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 1.699
TranslationServiceImplTest 25 0 0 0 100% 1.06
SimpleTranslatorTest 8 0 0 2 75% 0.084
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.173
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.277

info.magnolia.i18nsystem.util

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

Test Cases

[Summary] [Package List] [Test Cases]

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0.001
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 0.001

ProxytoysI18nizerTest

decorateChildWithNullObjectDoesNotThrowException 0.007
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.232
decorateWithNullObjectDoesNotThrowException 0.005
testWithSingleChildObject 0.038
blowsIfObjectIsAlreadyProxiedByI18nizer 0.021
testWithDeeperChildren 0.038
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.05
nullChildJustReturnsNull 0.001
testWithChildren 0.007
objectsClonedWithClonerLibCanBeDecorated 0.002
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.014
testWithChildrenInMap 0.018
testWithExistingValuesBeforeDecoration 0.003

DefaultMessageBundlesLoaderReloadTest

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

TranslationServiceImplTest

messageWithBasenameAndLocale 0.04
nullKey 0.033
messageNotFound 0.067
messageWithSwissGermanVariantLocale 0.042
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.013
messageFallsBackToClosestAvailableMessage 0.034
debugNewI18n 0.05
messageFallsBackToDefaultLanguage 0.026
messageWithFrenchLocale 0.019
debugNewI18nMissingTranslation 0.019
debugOldI18n 0.031
messageWithNullKeys 0.043
messageWithBasename 0.035
messageWithSwissGermanLocale 0.049
shouldPreferUserLocaleWithSecondaryKey 0.028
messageNotFoundWithBasename 0.042
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.033
handleLegacyTranslationSanitation 0.061
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.056
messageFallsBackToDefautLocaleFromAVariantLocale 0.037
messageFallsBackToAvailableMessageFromVariantToCountry 0.05
messageWithNoKeys 0.037
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.092
messageWithGermanLocale 0.046
givenBasenameFallbacksToDefaultLegacy 0.077

ReturnsAnnotatedTypeArgumentTest

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

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.005
doesNotIncludeOtherRandomMethod 0.001
includesMethodOnSelf 0
includesMethodOnInterface 0

GenericsUtilsTest

getGenericTypeOfReturnType 0.002
returnsObjectForWildcards 0.002
sanityChecks 0.011
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.038
extraTestForConditionsAndPlurals 0.024
keyWithPrintfFormatMultipleArgs 0
Ignored for now but I would like to support the printf format too eventually
testTranslateShouldNotFailOnInvalidI18nMessage 0.001
formatAccordingToLocale 0.014
keyWithMessageFormat 0
keyWithMessageFormatMultipleArgs 0.007

ChildDecoratorTest

decorateList 0.003
decoratedListIsModifiable 0
decorateCollection 0.002
decorateMap 0.006

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.003
getAnnotationWorksOnSubclass 0.001
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.135
removeHardcodedI18nPropertiesUnderAppNode 0.013
leaveOtherPropertiesAlone 0.008

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.03
getDifferentBundlenamesForEachChild 0.051
addKeyConsidersLabelAsAnOptionalSuffix 0.003
getNullBundlenameWhenNoneIsDefined 0.019
getRootBundlenameWhenNoOtherIsDefined 0.004
getIdOrNameForUnknownRoot 0.008
getRoot 0.011
ancestorsFromSimpleChain 0.018
getRootKeyGenerator 0.015
getAncestorKeyGenerators 0.014

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.167
sanitiseHtmlContent 0.021
bundlesLoaderLoadsAllLocales 0.038
doesNotSanitiseFormattingRelatedHtmlContent 0.051
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation 0
Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0.001
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0.012
resolveLocaleReturnsDefaultLocale 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.005
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.001

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