Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
106 0 0 7 93.396% 1.578

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.proxytoys 33 0 0 4 87.879% 0.16
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.007
info.magnolia.i18nsystem.setup 8 0 0 0 100% 0.084
info.magnolia.i18nsystem 48 0 0 2 95.833% 1.327
info.magnolia.i18nsystem.tools 1 0 0 1 0% 0

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

info.magnolia.i18nsystem.proxytoys

Class Tests Errors Failures Skipped Success Rate Time
ChildDecoratorTest 4 0 0 0 100% 0.04
MethodsAnnotatedWithTest 4 0 0 0 100% 0.008
ProxytoysI18nizerTest 18 0 0 4 77.778% 0.11
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.002
GenericsUtilsTest 4 0 0 0 100% 0.002
LocaleUtilsTest 5 0 0 0 100% 0.002
MessageFormatterUtilsTest 3 0 0 0 100% 0.001

info.magnolia.i18nsystem.setup

Class Tests Errors Failures Skipped Success Rate Time
AbstractRemoveHardcodedI18nPropertiesTaskTest 2 0 0 0 100% 0.07
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.004
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.01

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.597
DefaultMessageBundlesLoaderTest 4 0 0 0 100% 0.284
SimpleTranslatorTest 8 0 0 2 75% 0.025
TranslationServiceImplReloadBundlesTest 1 0 0 0 100% 0.014
TranslationServiceImplTest 25 0 0 0 100% 0.407

info.magnolia.i18nsystem.tools

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractI18nKeyGeneratorTest

ancestorsFromList 0.528
getDifferentBundlenamesForEachChild 0.016
addKeyConsidersLabelAsAnOptionalSuffix 0.012
getNullBundlenameWhenNoneIsDefined 0.008
getRootBundlenameWhenNoOtherIsDefined 0.008
getIdOrNameForUnknownRoot 0.006
getRoot 0.007
ancestorsFromSimpleChain 0.003
getRootKeyGenerator 0.005
getAncestorKeyGenerators 0.004

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.216
sanitiseHtmlContent 0.018
bundlesLoaderLoadsAllLocales 0.02
doesNotSanitiseFormattingRelatedHtmlContent 0.03

ChildDecoratorTest

decorateList 0.026
decoratedListIsModifiable 0.001
decorateCollection 0.002
decorateMap 0.011

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.008
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0
includesMethodOnInterface 0

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.012
decorateWithNullObjectDoesNotThrowException 0
testWithSingleChildObject 0.005
blowsIfObjectIsAlreadyProxiedByI18nizer 0.009
testWithDeeperChildren 0.015
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.034
nullChildJustReturnsNull 0.001
testWithChildren 0.01
objectsClonedWithClonerLibCanBeDecorated 0.002
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.01
testWithChildrenInMap 0.006
testWithExistingValuesBeforeDecoration 0.002

ReturnsAnnotatedTypeArgumentTest

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

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.069
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.002
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.006
removeHardcodedI18nPropertiesUnderAppNode 0.002
leaveOtherPropertiesAlone 0.002

SimpleTranslatorTest

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

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplReloadBundlesTest

messageFoundAfterBundlesReload 0.014

TranslationServiceImplTest

messageWithBasenameAndLocale 0.038
nullKey 0.02
messageNotFound 0.018
messageWithSwissGermanVariantLocale 0.015
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.017
messageFallsBackToClosestAvailableMessage 0.014
debugNewI18n 0.015
messageFallsBackToDefaultLanguage 0.015
messageWithFrenchLocale 0.017
givenBasenameFallbacksToDefautLegacy 0.016
debugNewI18nMissingTranslation 0.012
debugOldI18n 0.019
messageWithNullKeys 0.021
messageWithBasename 0.014
messageWithSwissGermanLocale 0.012
shouldPreferUserLocaleWithSecondaryKey 0.014
messageNotFoundWithBasename 0.012
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.012
handleLegacyTranslationSanitation 0.015
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.013
messageFallsBackToDefautLocaleFromAVariantLocale 0.012
messageFallsBackToAvailableMessageFromVariantToCountry 0.012
messageWithNoKeys 0.012
isDebugReturnsFalseWhenI18nModuleProviderIsNotReady 0.029
messageWithGermanLocale 0.013

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.001
getAnnotationWorksOnSubclass 0
getAnnotationWorksOnInterface 0
getAnnotationWorksOnClassDirectlyAnnotated 0.001

GenericsUtilsTest

getGenericTypeOfReturnType 0.001
returnsObjectForWildcards 0
sanityChecks 0.001
returnsLowerBoundForExtends 0

LocaleUtilsTest

resolveLocaleIsLenientWithLowercaseCountryCode 0
resolveLocaleReturnsLanguageLocale 0.001
resolveLocaleReturnsLanguageCountryLocale 0
resolveLocaleReturnsLanguageCountryVariantLocale 0
resolveLocaleReturnsDefaultLocale 0.001

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 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
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