Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
207 0 0 1 99.517% 20.748

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 7 0 0 0 100% 0.368
info.magnolia.config.source.yaml 58 0 0 0 100% 4.473
info.magnolia.config.source.jcr 4 0 0 0 100% 1.243
info.magnolia.config.source.yaml.decoration 15 0 0 0 100% 1.218
info.magnolia.config.maputil 8 0 0 0 100% 1.119
info.magnolia.config.resolver 6 0 0 0 100% 8.944
info.magnolia.commands 3 0 0 0 100% 0.06
info.magnolia.config.converters 10 0 0 0 100% 0.172
info.magnolia.config.registry 30 0 0 0 100% 0.094
info.magnolia.config.map2bean 38 0 0 1 97.368% 0.245
info.magnolia.config.source 2 0 0 0 100% 0.111
info.magnolia.config.source.raw 6 0 0 0 100% 0.053
info.magnolia.config 16 0 0 0 100% 2.606
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.042

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.272
ModuleMap2BeanTransformerTest 4 0 0 0 100% 0.089
ModuleYamlConfigurationSourceTest 2 0 0 0 100% 0.007

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.007
YamlReaderTest 17 0 0 0 100% 0.052
YamlDefinitionProviderTest 17 0 0 0 100% 4.261
YamlConfigurationSourceTest 9 0 0 0 100% 0.144
MetadataProcessorTest 1 0 0 0 100% 0.004
YamlConfigurationSourceBuilderTest 2 0 0 0 100% 0.003
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.002

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.018
YamlDefinitionDecoratorTest 12 0 0 0 100% 1.2

info.magnolia.config.maputil

Class Tests Errors Failures Skipped Success Rate Time
ConfigurationMapOverlayTest 3 0 0 0 100% 1.085
ToMapTest 5 0 0 0 100% 0.034

info.magnolia.config.resolver

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

info.magnolia.commands

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

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.168
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.004

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
DefinitionProviderBuilderTest 3 0 0 0 100% 0.005
DefinitionQueryImplTest 2 0 0 0 100% 0.006
RegistryTypeNameUtilTest 2 0 0 0 100% 0
RegistryFacadeImplTest 4 0 0 0 100% 0.016
AbstractRegistryTest 13 0 0 0 100% 0.064
RegistryMapTest 6 0 0 0 100% 0.003

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 38 0 0 1 97.368% 0.245

info.magnolia.config.source

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

info.magnolia.config.source.raw

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

info.magnolia.config

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

info.magnolia.config.registry.decoration

Class Tests Errors Failures Skipped Success Rate Time
CachingDefinitionDecoratorTest 3 0 0 0 100% 0.03
DefinitionDecoratorsTest 1 0 0 0 100% 0.012

Test Cases

[Summary] [Package List] [Test Cases]

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.04
definitionProviderViewNullCheck 0.019
convertsSimpleProperty 0.017
convertsNestedClasses 0.021
nestedCollectionsHandledCorrectly 0.023
sameDefinitionProducedAfterJcrToYamlConversion 0.035
convertsCollection 0.013

ModuleJcrConfigurationSourceTest

reload 0.272

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0.001

DefinitionProviderBuilderTest

buildFromTransformationResultCompatibleDefinitionType 0
buildFromTransformationResultIncompatibleDefinitionType 0.002
reportsIncompatibleDefinitions 0.003

RegexBasedPathToMetadataInferrerTest

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

ModuleMap2BeanTransformerTest

handleMissingProperty 0.061
readCollection 0.005
createModuleInstance 0.019
readMap 0.004

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 1.404
modifyListPropertyElement 0.108
canWrapBeanWithCycles 0.193
mutableWrapperPreservesRuntimeType 0.058
modifyMapPropertyEntry 0.117
stringsAreNotWrapped 0
canWrapProxiedObject 0.051
modificationsArePickedUpByNonGetterSetterMethods 0.035
modifySimpleProperty 0.031
primitivesAreNotWrapped 0.004
modifyPrimitiveListProperty 0.062
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.088
equalsWithComplexFieldsModified 0.137
enumsAreNotWrapped 0.001
toStringInvocation 0.053
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.264

YamlReaderTest

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

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.025
mapOfSimpleTypes 0.008
simpleValues 0.004
mapOfComplexTypes 0.003
collectionOfComplexTypes 0.003
mapOfSimpleTypesWithNonStringKeys 0.01

ConfigurationMapOverlayTest

createsMissingMapLayers 0.983
overlaysMapOfMapsAtPath 0.101
overlaysMapOfMapsAtRoot 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.025
cachedDecorationResult 0.003
invalidatesCacheOnDefinitionProviderModification 0.002

DefinitionQueryImplTest

queryByName 0.005
queryByLocation 0.001

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.07
decorationWithOverride 0.079
complexInheritanceWithOverriding 0.215
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.068
reactsOnIncludedFileChange 1.064
doesNotFailWhenBoundToEmptyFile 1.026
deprecateYAMLDefinition 0.088
deprecateYamlDefinitionWithOnlySinceValue 0.089
overrideListAndMapAndKeepOrder 0.255
definitionInheritanceWithNameAsId 0.04
includeWithOverriding 0.038
deprecateYamlDefinitionWhichInheritsOtherDefinition 0.059
deprecateYamlDefinitionContainsDescriptionWithSpaces 0.025
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.018
deprecationInformationRemovedFromMetadata 0.034
simpleOverride 0.043
simpleInheritance 0.05

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.005
registerProviderEvenIfFileCantBeLoaded 0.023
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.009
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.013
detectsYamlDefinitionDecoratorUponStart 0.044
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.03
registerProviderWithNullResource 0.003
registersWithInvalidYaml 0.009
transformationResultProblemsAreAggregatedByDefinitionProvider 0.008

ToMapTest

merelyTypeCastsMap 0.001
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.023
extractsNameKeysFromElementsOfListOfMaps 0.002
doesNotYieldNPEOnNullInput 0.007

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0
providesHumanReadablePluralRegistryName 0

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.024
checksForRights 0.021
streamClosedCorrectlyEvenThoughExceptionOccurs 0.015

MetadataProcessorTest

emptyMapEntryValueDoesNotThrowNPE 0.004

ModuleYamlConfigurationSourceTest

decorationPattern 0.007
moduleConfigPattern 0

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.117
testReloadsOnChange 1.065
testRawViewGeneration 0.046
testRegistersOnStart 0.015

RegistryFacadeImplTest

singleQuery 0.006
byModuleAggregatesFromDifferentRegistries 0.003
providersByType 0.004
providersByConfigurationSourceType 0.003

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.006
singleQuery 0.001
singleQueryByModuleAndPartialName 0.013
singleQueryByModuleAndName 0.002
unregisterDecoratedDefinition 0.009
singleQueryByPartialName 0.001
singleQueryByName 0.002
addDecoratorTargetingNonExistingDefinition 0.012
queryByModuleName 0.002
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.01
singleQueryFailsIfMultipleMatches 0.002
validateAlsoDecoratedDefinition 0.003
singleQueryFailsIfNoMatch 0.001

YamlConfigurationSourceBuilderTest

withCustomConstruct 0.002
withCustomMultiConstruct 0.001

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.011
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.005

Map2BeanTransformerTest

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

AnnotationProcessingTypeResolverTest

packageRestrictionToNonExistingPackage 0.478
packageRestrictionToParentPackage 0.144
noPackageRestrictionPropertyEmpty 5.207
packageRestrictionToFieldAndColumnPackages 0.011
noPackageRestriction 3.097
packageRestrictionToFieldPackage 0.007

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.012

RegistryMapTest

removeAndPutAll 0.002
canReRegisterDefinitionWithTheSameMetadata 0
canReRegisterDefinitionStub 0
idAlreadyRegistered 0.001
putAndGet 0
remove 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.109
nameOfCorrectlyHandlesCommonCapitalizationCases 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.547
decoratesRoot 0.051
decoratesAndOverridesListAndMapKeepOrder 0.061
decoratesNamedLists 0.039
decoratesTypeInformation 0.076
decorationProblemsAreAggregated 0.116
decoratesMapWithDigitKeys 0.043
emptyDecoratorIsLoggedAsProblem 0.041
cannotDecorateMapProblemShouldHaveSevereLevel 0.085
decoratesMapMember 0.046
decoratesMapWithArbitraryValueType 0.055
removingDecoratorOfDeletedResourceDoesNotThrowException 0.04

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped