Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.039
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0
info.magnolia.i18nsystem 51 0 0 4 92.157% 0.926
info.magnolia.i18nsystem.proxytoys 33 0 0 4 87.879% 0.063
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.033
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.003
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.003

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.346
DefaultMessageBundlesLoaderReloadTest 3 0 0 1 66.667% 0.304
DefaultMessageBundlesLoaderTest 5 0 0 1 80% 0.066
SimpleTranslatorTest 8 0 0 2 75% 0.017
TranslationServiceImplTest 25 0 0 0 100% 0.193

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
ChildDecoratorTest 4 0 0 0 100% 0.016
MethodsAnnotatedWithTest 4 0 0 0 100% 0.004
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.043
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0

info.magnolia.i18nsystem.util

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.314
getDifferentBundlenamesForEachChild 0.011
addKeyConsidersLabelAsAnOptionalSuffix 0.007
getNullBundlenameWhenNoneIsDefined 0.004
getRootBundlenameWhenNoOtherIsDefined 0.002
getIdOrNameForUnknownRoot 0.002
getRoot 0.001
ancestorsFromSimpleChain 0.001
getRootKeyGenerator 0.002
getAncestorKeyGenerators 0.002

DefaultMessageBundlesLoaderReloadTest

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

DefaultMessageBundlesLoaderTest

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

ChildDecoratorTest

decorateList 0.01
decoratedListIsModifiable 0
decorateCollection 0
decorateMap 0.006

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.003
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0
includesMethodOnInterface 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.006
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.001
blowsIfObjectIsAlreadyProxiedByI18nizer 0.003
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.018
nullChildJustReturnsNull 0
testWithChildren 0.002
objectsClonedWithClonerLibCanBeDecorated 0
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.005
testWithChildrenInMap 0.002
testWithExistingValuesBeforeDecoration 0.001

ReturnsAnnotatedTypeArgumentTest

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

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.032
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.002
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.002
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0

SimpleTranslatorTest

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

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplTest

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

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.002
getAnnotationWorksOnSubclass 0
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0

GenericsUtilsTest

getGenericTypeOfReturnType 0.001
returnsObjectForWildcards 0
sanityChecks 0
returnsLowerBoundForExtends 0

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0
resolveLocaleReturnsLanguageCountryLocale 0.001
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 0

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