Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
93 0 0 7 92.473% 2.044

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 28 0 0 4 85.714% 0.121
info.magnolia.i18nsystem.util 16 0 0 0 100% 0.004
info.magnolia.i18nsystem.setup 8 0 0 0 100% 0.117
info.magnolia.i18nsystem 40 0 0 2 95% 1.802
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
MethodsAnnotatedWithTest 4 0 0 0 100% 0.004
ProxytoysI18nizerTest 17 0 0 4 76.471% 0.116
ReturnsAnnotatedTypeArgumentTest 7 0 0 0 100% 0.001

info.magnolia.i18nsystem.util

Class Tests Errors Failures Skipped Success Rate Time
AnnotationUtilsTest 4 0 0 0 100% 0.001
GenericsUtilsTest 4 0 0 0 100% 0.002
LocaleUtilsTest 5 0 0 0 100% 0
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.105
RemoveHardcodedI18nPropertiesFromDialogsTaskTest 3 0 0 0 100% 0.006
RemoveHardcodedI18nPropertiesFromSubappsTaskTest 3 0 0 0 100% 0.006

info.magnolia.i18nsystem

Class Tests Errors Failures Skipped Success Rate Time
AbstractI18nKeyGeneratorTest 10 0 0 0 100% 0.294
DefaultMessageBundlesLoaderTest 2 0 0 0 100% 0.201
SimpleTranslatorTest 8 0 0 2 75% 0.017
TranslationServiceImplReloadBundlesTest 1 0 0 0 100% 0.402
TranslationServiceImplTest 19 0 0 0 100% 0.888

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.255
getDifferentBundlenamesForEachChild 0.006
addKeyConsidersLabelAsAnOptionalSuffix 0.01
getNullBundlenameWhenNoneIsDefined 0.004
getRootBundlenameWhenNoOtherIsDefined 0.004
getIdOrNameForUnknownRoot 0.003
getRoot 0.003
ancestorsFromSimpleChain 0.001
getRootKeyGenerator 0.003
getAncestorKeyGenerators 0.005

DefaultMessageBundlesLoaderTest

testUTF8CharactersAreReadProperly 0.145
bundlesLoaderLoadsAllLocales 0.056

MethodsAnnotatedWithTest

includesMethodOnSuperclass 0.004
doesNotIncludeOtherRandomMethod 0
includesMethodOnSelf 0
includesMethodOnInterface 0

ProxytoysI18nizerTest

decorateEnum 0
skipped
decorateWithNullObjectDoesNotThrowException 0.011
testWithSingleChildObject 0.009
testWithDeeperChildren 0.011
testSimpleObject 0.006
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
blowsIfCalledTwiceOnSameObject 0.007
decoratedMapShouldAllowToPutNewObjectsAndDecorateThem 0
Not implemented yet
decoratedObjectsCanBeClonedWithClonerLib 0.02
nullChildJustReturnsNull 0.006
testWithChildren 0.009
decorateChildWithNullObjectDoesNotThrowException 0.004
objectsClonedWithClonerLibCanBeDecorated 0.005
defaultValuesSetInConstructorDoNotOverrideValuesAfterProxying 0.01
testWithChildrenInMap 0.012
testWithExistingValuesBeforeDecoration 0.006

ReturnsAnnotatedTypeArgumentTest

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

AbstractRemoveHardcodedI18nPropertiesTaskTest

removeHardcodedI18nPropertiesUnderAppNode 0.104
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromDialogsTaskTest

removeI18nPropertiesFromDialogs 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.001
leaveOtherPropertiesAlone 0.001

RemoveHardcodedI18nPropertiesFromSubappsTaskTest

removeI18nPropertiesFromSubapps 0.004
removeHardcodedI18nPropertiesUnderAppNode 0.001
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.003
keyWithPrintfFormatMultipleArgs 0
Ignored for now but I would like to support the printf format too eventually
testTranslateShouldNotFailOnInvalidI18nMessage 0.001
formatAccordingToLocale 0.002
keyWithMessageFormat 0
keyWithMessageFormatMultipleArgs 0.001

GenerateTranslationFilesImplTest

generateTranslationFilesAndEverythingElse 0
skipped

TranslationServiceImplReloadBundlesTest

messageFoundAfterBundlesReload 0.402

TranslationServiceImplTest

messageWithBasenameAndLocale 0.058
messageNotFound 0.054
messageWithSwissGermanVariantLocale 0.05
messageWithBasenameAndLocaleFallsBackToDefaultLocaleIfNotFound 0.045
messageFallsBackToClosestAvailableMessage 0.047
messageFallsBackToDefaultLanguage 0.036
messageWithFrenchLocale 0.043
givenBasenameFallbacksToDefautLegacy 0.037
messageWithNullKeys 0.036
messageWithBasename 0.041
messageWithSwissGermanLocale 0.035
shouldPreferUserLocaleWithSecondaryKey 0.086
messageNotFoundWithBasename 0.043
messageAvailableOnlyInEnglishWithSystemFallbackLanguageSetAsEnglish 0.051
messageWithBasenameAndLocaleFallsBackToGlobalBundleIfNotFound 0.048
messageFallsBackToDefautLocaleFromAVariantLocale 0.053
messageFallsBackToAvailableMessageFromVariantToCountry 0.039
messageWithNoKeys 0.041
messageWithGermanLocale 0.045

AnnotationUtilsTest

getAnnotationWorksOnClassImplementingInterface 0.001
getAnnotationWorksOnSubclass 0
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

MessageFormatterUtilsTest

invalidMessageWithDoubledSingleQuoteAfterChoice 0.001
invalidMessageWithSingleQuotes 0
validMessageWithDoubledSingleQuote 0

Failure Details

[Summary] [Package List] [Test Cases]


decorateEnum
skipped: skipped
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