Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
143 0 0 0 100% 6.136

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.maputil 8 0 0 0 100% 0.013
info.magnolia.config.source.raw 5 0 0 0 100% 0.017
info.magnolia.config.source 2 0 0 0 100% 0.006
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.008
info.magnolia.config.source.jcr 4 0 0 0 100% 1.133
info.magnolia.config.map2bean 26 0 0 0 100% 0.245
info.magnolia.commands 3 0 0 0 100% 0.508
info.magnolia.config.registry 17 0 0 0 100% 0.061
info.magnolia.config.source.yaml.decoration 9 0 0 0 100% 0.263
info.magnolia.config.converters 10 0 0 0 100% 0.542
info.magnolia.config 15 0 0 0 100% 0.17
info.magnolia.config.source.yaml 40 0 0 0 100% 3.17

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

info.magnolia.config.maputil

Class Tests Errors Failures Skipped Success Rate Time
ConfigurationMapOverlayTest 3 0 0 0 100% 0.008
ToMapTest 5 0 0 0 100% 0.005

info.magnolia.config.source.raw

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

info.magnolia.config.source

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

info.magnolia.config.registry.decoration

Class Tests Errors Failures Skipped Success Rate Time
CachingDefinitionDecoratorTest 3 0 0 0 100% 0.005
DefinitionDecoratorsTest 1 0 0 0 100% 0.003

info.magnolia.config.source.jcr

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

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 26 0 0 0 100% 0.245

info.magnolia.commands

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 8 0 0 0 100% 0.049
RegistryFacadeImplTest 2 0 0 0 100% 0.004
RegistryMapTest 5 0 0 0 100% 0.003
RegistryTypeNameUtilTest 2 0 0 0 100% 0.005

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 2 0 0 0 100% 0.011
YamlDefinitionDecoratorTest 7 0 0 0 100% 0.252

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.536
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.006

info.magnolia.config

Class Tests Errors Failures Skipped Success Rate Time
MutableWrapperTest 15 0 0 0 100% 0.17

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.013
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.001
YamlConfigurationSourceTest 8 0 0 0 100% 0.059
YamlDefinitionProviderTest 4 0 0 0 100% 3.065
YamlReaderTest 16 0 0 0 100% 0.032

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.453
checksForRights 0.027
streamClosedCorrectlyEvenThoughExceptionOccurs 0.028

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.091
definitionProviderViewNullCheck 0.004
convertsSimpleProperty 0.002
convertsNestedClasses 0.002
nestedCollectionsHandledCorrectly 0.003
sameDefinitionProducedAfterJcrToYamlConversion 0.432
convertsCollection 0.002

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.002
handlesSubBeans 0.003
handlesCollectionProperties 0.001

Map2BeanTransformerTest

toBeanResolvesSimpleMaps 0.01
toBeanSupportsNullProperties 0.005
toBeanInstantiatesTargetTypeDefinedByTheClassProperty 0.005
toBeanResolvesEmptyLists 0.003
toBeanResolvesEnums 0.003
toBeanResolvesBeanListsFromMaps 0.015
toBeanResolvesClassPropertyType 0.003
toBeanSupportsNullClassProperties 0.006
toBeanResolvesBeanLists 0.007
toBeanResolvesSimpleLists 0.005
toBeanDoesntInvokeGetters 0.09
toBeanSupportsNonTypedMaps 0.007
toBeanSupportsNonTypedLists 0.004
toBeanSupportsNullOrEmptyMap 0.003
unknownPropertiesAreIgnored 0.01
toBeanInstantiatesTargetTypeDefinedByTheClassPropertyAndResolvesSubTypeMapping 0.013
toBeanResolvesIterablesOfPrimitives 0.004
toBeanResolvesNamePropertyInBeanMaps 0.01
toBeanResolvesBeanMaps 0.007
toBeanPreservesOrderingOfBeanMaps 0.004
toBeanResolvesNameProperty 0.002
toBeanResolvesBasicPropertyTypes 0.003
initIsCalledAfterBeanIsMapped 0.014
toBeanResolvesListsAndIgnoresElementsWithIncompatibleType 0.005
toBeanResolvesSubBeans 0.003
toBeanResolvesNamePropertyInBeanListsFromMaps 0.004

ConfigurationMapOverlayTest

createsMissingMapLayers 0.003
overlaysMapOfMapsAtPath 0.005
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.003
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0.001

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.106
modifyListPropertyElement 0.024
canWrapBeanWithCycles 0.015
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0
stringsAreNotWrapped 0
canWrapProxiedObject 0.009
modifySimpleProperty 0
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.001
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.013
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.016
singleQuery 0.004
singleQueryByModuleAndName 0.001
singleQueryByName 0.002
queryByModuleName 0.003
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.019
singleQueryFailsIfMultipleMatches 0.002
singleQueryFailsIfNoMatch 0.002

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.002
invalidatesCacheOnDefinitionProviderModification 0.002

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.003

RegistryFacadeImplTest

singleQuery 0.003
byModuleAggregatesFromDifferentRegistries 0.001

RegistryMapTest

removeAndPutAll 0.002
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.001
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.004
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.004
nameOfCorrectlyHandlesCommonCapitalizationCases 0.002

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.029
testReloadsOnChange 1.064
testRawViewGeneration 0.027
testRegistersOnStart 0.013

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.004
mapOfSimpleTypes 0.004
simpleValues 0.003
mapOfComplexTypes 0.003
collectionOfComplexTypes 0.003

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.009
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.063
decoratesRoot 0.025
decoratesNamedLists 0.026
decoratesTypeInformation 0.04
decoratesMapMember 0.032
decoratesMapWithArbitraryValueType 0.028
removingDecoratorOfDeletedResourceDoesNotThrowException 0.038

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.003
registerProviderEvenIfFileCantBeLoaded 0.011
nameFromDefHasPriority 0.005
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.006
detectsYamlDefinitionDecoratorUponStart 0.01
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.017
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.006

YamlDefinitionProviderTest

gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.019
reactsOnIncludedFileChange 1.021
doesNotFailWhenBoundToEmptyFile 1.015
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.01

YamlReaderTest

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