Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.094
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem 51 0 0 4 92.157% 1.95
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.119
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.008

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.076
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.008
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.01

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.85
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 0.551
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.117
SimpleTranslatorTest 8 0 0 2 75% 0.027
TranslationServiceImplTest 25 0 0 0 100% 0.405

info.magnolia.i18nsystem.proxytoys

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

info.magnolia.i18nsystem.util

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.798
getDifferentBundlenamesForEachChild 0.018
addKeyConsidersLabelAsAnOptionalSuffix 0.012
getNullBundlenameWhenNoneIsDefined 0.004
getRootBundlenameWhenNoOtherIsDefined 0.004
getIdOrNameForUnknownRoot 0.005
getRoot 0.002
ancestorsFromSimpleChain 0.002
getRootKeyGenerator 0.002
getAncestorKeyGenerators 0.003

DefaultMessageBundlesLoaderReloadTest

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

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.076
sanitiseHtmlContent 0.012
bundlesLoaderLoadsAllLocales 0.014
doesNotSanitiseFormattingRelatedHtmlContent 0.015
proveMessageFormatChoiceSyntaxIsBrokenByHtmlSanitation 0
Hopefully at some point we can change this test into "respectMessageFormatChoiceSyntax" :) - see LANG-42

ChildDecoratorTest

decorateList 0.018
decoratedListIsModifiable 0
decorateCollection 0.002
decorateMap 0.011

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.005
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0
includesMethodOnInterface 0.001

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.014
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.003
blowsIfObjectIsAlreadyProxiedByI18nizer 0.008
testWithDeeperChildren 0.007
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.029
nullChildJustReturnsNull 0
testWithChildren 0.005
objectsClonedWithClonerLibCanBeDecorated 0.001
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.008
testWithChildrenInMap 0.002
testWithExistingValuesBeforeDecoration 0.002

ReturnsAnnotatedTypeArgumentTest

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

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.074
leaveOtherPropertiesAlone 0.002

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.002

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.007
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.001

SimpleTranslatorTest

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

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplTest

messageWithBasenameAndLocale 0.044
nullKey 0.014
messageNotFound 0.013
messageWithSwissGermanVariantLocale 0.01
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.014
messageFallsBackToClosestAvailableMessage 0.01
debugNewI18n 0.013
messageFallsBackToDefaultLanguage 0.014
messageWithFrenchLocale 0.01
debugNewI18nMissingTranslation 0.012
debugOldI18n 0.023
messageWithNullKeys 0.018
messageWithBasename 0.018
messageWithSwissGermanLocale 0.018
shouldPreferUserLocaleWithSecondaryKey 0.021
messageNotFoundWithBasename 0.04
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.015
handleLegacyTranslationSanitation 0.016
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.012
messageFallsBackToDefautLocaleFromAVariantLocale 0.011
messageFallsBackToAvailableMessageFromVariantToCountry 0.01
messageWithNoKeys 0.007
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.022
messageWithGermanLocale 0.009
givenBasenameFallbacksToDefaultLegacy 0.011

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.002
getAnnotationWorksOnSubclass 0.001
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

GenericsUtilsTest

getGenericTypeOfReturnType 0.001
returnsObjectForWildcards 0
sanityChecks 0.001
returnsLowerBoundForExtends 0

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0.001

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0
invalidMessageWithSingleQuotes 0.001
validMessageWithDoubledSingleQuote 0.001

Failure Details

[Summary] [Package List] [Test Cases]


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