Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
209 0 0 1 99.522% 9.914

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.config.module 8 0 0 0 100% 0.228
info.magnolia.config.source.yaml 58 0 0 0 100% 3.447
info.magnolia.config.source.jcr 4 0 0 0 100% 1.135
info.magnolia.config.source.yaml.decoration 15 0 0 0 100% 0.461
info.magnolia.config.maputil 8 0 0 0 100% 0.37
info.magnolia.config.resolver 6 0 0 0 100% 3.526
info.magnolia.commands 3 0 0 0 100% 0.024
info.magnolia.config.converters 10 0 0 0 100% 0.057
info.magnolia.config.registry 30 0 0 0 100% 0.032
info.magnolia.config.map2bean 39 0 0 1 97.436% 0.092
info.magnolia.config.source 2 0 0 0 100% 0.013
info.magnolia.config.source.raw 6 0 0 0 100% 0
info.magnolia.config 16 0 0 0 100% 0.518
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.011

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

info.magnolia.config.module

Class Tests Errors Failures Skipped Success Rate Time
ModuleJcrConfigurationSourceTest 1 0 0 0 100% 0.066
ModuleMap2BeanTransformerTest 5 0 0 0 100% 0.16
ModuleYamlConfigurationSourceTest 2 0 0 0 100% 0.002

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.004
YamlReaderTest 17 0 0 0 100% 0.017
YamlDefinitionProviderTest 17 0 0 0 100% 3.372
YamlConfigurationSourceTest 9 0 0 0 100% 0.053
MetadataProcessorTest 1 0 0 0 100% 0.001
YamlConfigurationSourceBuilderTest 2 0 0 0 100% 0
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0

info.magnolia.config.source.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrConfigurationSourceTest 4 0 0 0 100% 1.135

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.009
YamlDefinitionDecoratorTest 12 0 0 0 100% 0.452

info.magnolia.config.maputil

Class Tests Errors Failures Skipped Success Rate Time
ConfigurationMapOverlayTest 3 0 0 0 100% 0.358
ToMapTest 5 0 0 0 100% 0.012

info.magnolia.config.resolver

Class Tests Errors Failures Skipped Success Rate Time
AnnotationProcessingTypeResolverTest 6 0 0 0 100% 3.526

info.magnolia.commands

Class Tests Errors Failures Skipped Success Rate Time
ExportJcrNodeToYamlCommandTest 3 0 0 0 100% 0.024

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.056
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.001

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
DefinitionProviderBuilderTest 3 0 0 0 100% 0.001
DefinitionQueryImplTest 2 0 0 0 100% 0
RegistryTypeNameUtilTest 2 0 0 0 100% 0
RegistryFacadeImplTest 4 0 0 0 100% 0.009
AbstractRegistryTest 13 0 0 0 100% 0.021
RegistryMapTest 6 0 0 0 100% 0.001

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 39 0 0 1 97.436% 0.092

info.magnolia.config.source

Class Tests Errors Failures Skipped Success Rate Time
AbstractConfigurationSourceBuilderTest 2 0 0 0 100% 0.013

info.magnolia.config.source.raw

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewMapWrapperTest 6 0 0 0 100% 0

info.magnolia.config

Class Tests Errors Failures Skipped Success Rate Time
MutableWrapperTest 16 0 0 0 100% 0.518

info.magnolia.config.registry.decoration

Class Tests Errors Failures Skipped Success Rate Time
CachingDefinitionDecoratorTest 3 0 0 0 100% 0.007
DefinitionDecoratorsTest 1 0 0 0 100% 0.004

Test Cases

[Summary] [Package List] [Test Cases]

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.014
definitionProviderViewNullCheck 0.005
convertsSimpleProperty 0.005
convertsNestedClasses 0.007
nestedCollectionsHandledCorrectly 0.005
sameDefinitionProducedAfterJcrToYamlConversion 0.013
convertsCollection 0.006

ModuleJcrConfigurationSourceTest

reload 0.065

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0
handlesSubBeans 0
handlesCollectionProperties 0

DefinitionProviderBuilderTest

buildFromTransformationResultCompatibleDefinitionType 0
buildFromTransformationResultIncompatibleDefinitionType 0
reportsIncompatibleDefinitions 0.001

RegexBasedPathToMetadataInferrerTest

moduleIsFoundFromPattern 0
nameIsFoundFromNamedPattern 0
nameFromPathPattern 0
nameFallsBackToFileName 0
nameAndModuleFromNamedGroups 0.001
throwsExceptionIfPathDoesntMatchPattern 0
nameIsFoundFromNumberedPattern 0.001
moduleIsFoundFromPatternWithNamedGroup 0
nameFromFilenameIfNoPattern 0.001
javaFreeModulesConventions 0.001
moduleFallsBackToGivenDefault 0

ModuleMap2BeanTransformerTest

handleMissingProperty 0.147
readCollection 0.003
createModuleInstance 0.005
readMapDoesNotSkipBeanWhenIsEnabledReturnsBooleanClass 0.003
readMap 0.001

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.291
modifyListPropertyElement 0.032
canWrapBeanWithCycles 0.038
mutableWrapperPreservesRuntimeType 0.018
modifyMapPropertyEntry 0.021
stringsAreNotWrapped 0
canWrapProxiedObject 0.008
modificationsArePickedUpByNonGetterSetterMethods 0.009
modifySimpleProperty 0.008
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0.011
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.013
equalsWithComplexFieldsModified 0.022
enumsAreNotWrapped 0
toStringInvocation 0.011
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.036

YamlReaderTest

readerGetsClosed 0
tabsCanBeUsedInScalars 0
syntaxQuirks 0.001
loadingListAsRootObjectShouldFail 0.001
includesWithAbsolutePaths 0.003
tabsCantBeUsedToIndent 0.002
mapWithNumberKeys 0
canHandleNonBreakingWhiteSpace 0.001
brokenIndentationLeadsToUnderstandableErrorMessages 0.001
singleLineYamlCanBeRead 0.001
references 0.001
canHandleNonBreakingWhiteSpace2 0.001
basicAttributes 0
selfTestNestedMapGet 0
canReadValueLessProperty 0
supportsAbbreviatedSyntax 0.004
canReadEmptyStringProperty 0

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0
mapOfSimpleTypes 0
simpleValues 0
mapOfComplexTypes 0
collectionOfComplexTypes 0
mapOfSimpleTypesWithNonStringKeys 0

ConfigurationMapOverlayTest

createsMissingMapLayers 0.314
overlaysMapOfMapsAtPath 0.004
overlaysMapOfMapsAtRoot 0

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.005
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionQueryImplTest

queryByName 0
queryByLocation 0

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.024
decorationWithOverride 0.029
complexInheritanceWithOverriding 0.045
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.017
reactsOnIncludedFileChange 1.02
doesNotFailWhenBoundToEmptyFile 1.016
deprecateYAMLDefinition 0.019
deprecateYamlDefinitionWithOnlySinceValue 0.016
overrideListAndMapAndKeepOrder 0.033
definitionInheritanceWithNameAsId 0.023
includeWithOverriding 0.027
deprecateYamlDefinitionWhichInheritsOtherDefinition 0.019
deprecateYamlDefinitionContainsDescriptionWithSpaces 0.013
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.01
deprecationInformationRemovedFromMetadata 0.018
simpleOverride 0.02
simpleInheritance 0.023

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.001
registerProviderEvenIfFileCantBeLoaded 0.011
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.001
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.003
detectsYamlDefinitionDecoratorUponStart 0.008
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.011
registerProviderWithNullResource 0.002
registersWithInvalidYaml 0.014
transformationResultProblemsAreAggregatedByDefinitionProvider 0.002

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.009
extractsNameKeysFromElementsOfListOfMaps 0.002
doesNotYieldNPEOnNullInput 0.001

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0
providesHumanReadablePluralRegistryName 0

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.011
checksForRights 0.008
streamClosedCorrectlyEvenThoughExceptionOccurs 0.005

MetadataProcessorTest

emptyMapEntryValueDoesNotThrowNPE 0.001

ModuleYamlConfigurationSourceTest

decorationPattern 0.001
moduleConfigPattern 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.045
testReloadsOnChange 1.045
testRawViewGeneration 0.035
testRegistersOnStart 0.01

RegistryFacadeImplTest

singleQuery 0.002
byModuleAggregatesFromDifferentRegistries 0.003
providersByType 0.002
providersByConfigurationSourceType 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.001
singleQuery 0.001
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
unregisterDecoratedDefinition 0.003
singleQueryByPartialName 0.001
singleQueryByName 0
addDecoratorTargetingNonExistingDefinition 0.004
queryByModuleName 0
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.005
singleQueryFailsIfMultipleMatches 0.001
validateAlsoDecoratedDefinition 0.001
singleQueryFailsIfNoMatch 0.001

YamlConfigurationSourceBuilderTest

withCustomConstruct 0
withCustomMultiConstruct 0

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.005
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.001
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.002

Map2BeanTransformerTest

toBeanResolvesSimpleMaps 0.001
toBeanSupportsNullProperties 0.004
toBeanInstantiatesTargetTypeDefinedByTheClassProperty 0.001
nullPropertyValuesShowWarning 0.003
toBeanResolvesEmptyLists 0.002
emptyNameIsNotForciblySetByMap2Bean 0
toBeanResolvesEnums 0.001
toBeanResolvesBeanListsFromMaps 0.002
toBeanResolvesClassPropertyType 0.001
toBeanSupportsNullClassProperties 0.001
toBeanResolvesBeanLists 0.003
beanSetterInvocationProblemIsTracked 0.003
toBeanResolvesSimpleLists 0.001
toBeanDoesntInvokeGetters 0.031
toBeanSupportsNonTypedMaps 0.002
toBeanSupportsNonTypedLists 0.002
yieldsCorrectCollectionTypes 0.002
toBeanSupportsNullOrEmptyMap 0.001
typeMismatchShowsWarnings 0.001
initIsCalledAfterBeanIsPopulated 0.002
beanTypeResolutionProblemIsTracked 0
skipped
toBeanResolvesPrimitiveListsAndIgnoresIncompatibleTypes 0.003
invalidClassPropertyValueIsTrackedAsProblem 0.001
toBeanInstantiatesTargetTypeDefinedByTheClassPropertyAndResolvesSubTypeMapping 0.004
toBeanResolvesIterablesOfPrimitives 0.001
toBeanResolvesNamePropertyInBeanMaps 0.001
beanInitialisationProblemIsTracked 0.002
toBeanResolvesBeanMaps 0
transformationOfNullInputIsTrackedAsProblem 0.001
toBeanPreservesOrderingOfBeanMaps 0.001
toBeanResolvesNameProperty 0
toBeanResolvesBasicPropertyTypes 0.001
toBeanCanHandleMapsWithNonStringKeys 0.001
initIsCalledAfterBeanIsMapped 0.003
simpleValueConversionProblemIsTracked 0.001
toBeanResolvesListsAndIgnoresElementsWithIncompatibleType 0.002
toBeanResolvesSubBeans 0.001
unknownPropertiesAreTracked 0.002
toBeanResolvesNamePropertyInBeanListsFromMaps 0.001

AnnotationProcessingTypeResolverTest

packageRestrictionToNonExistingPackage 0.124
packageRestrictionToParentPackage 0.03
noPackageRestrictionPropertyEmpty 2.128
packageRestrictionToFieldAndColumnPackages 0.005
noPackageRestriction 1.234
packageRestrictionToFieldPackage 0.005

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.004

RegistryMapTest

removeAndPutAll 0
canReRegisterDefinitionWithTheSameMetadata 0
canReRegisterDefinitionStub 0
idAlreadyRegistered 0
putAndGet 0
remove 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.012
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.235
decoratesRoot 0.019
decoratesAndOverridesListAndMapKeepOrder 0.022
decoratesNamedLists 0.021
decoratesTypeInformation 0.026
decorationProblemsAreAggregated 0.021
decoratesMapWithDigitKeys 0.018
emptyDecoratorIsLoggedAsProblem 0.016
cannotDecorateMapProblemShouldHaveSevereLevel 0.035
decoratesMapMember 0.01
decoratesMapWithArbitraryValueType 0.013
removingDecoratorOfDeletedResourceDoesNotThrowException 0.014

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped