Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
142 0 0 0 100% 5.394

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.009
info.magnolia.config.source.raw 5 0 0 0 100% 0.015
info.magnolia.config.source 2 0 0 0 100% 0.004
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.01
info.magnolia.config.source.jcr 4 0 0 0 100% 1.129
info.magnolia.config.map2bean 26 0 0 0 100% 0.146
info.magnolia.commands 3 0 0 0 100% 0.271
info.magnolia.config.registry 17 0 0 0 100% 0.044
info.magnolia.config.source.yaml.decoration 8 0 0 0 100% 0.192
info.magnolia.config.converters 10 0 0 0 100% 0.295
info.magnolia.config 15 0 0 0 100% 0.134
info.magnolia.config.source.yaml 40 0 0 0 100% 3.145

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.004
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.015

info.magnolia.config.source

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

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.003

info.magnolia.config.source.jcr

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

info.magnolia.config.map2bean

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

info.magnolia.commands

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 8 0 0 0 100% 0.031
RegistryFacadeImplTest 2 0 0 0 100% 0.006
RegistryMapTest 5 0 0 0 100% 0.001
RegistryTypeNameUtilTest 2 0 0 0 100% 0.006

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 2 0 0 0 100% 0.008
YamlDefinitionDecoratorTest 6 0 0 0 100% 0.184

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.292
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.003

info.magnolia.config

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

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.006
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.001
YamlConfigurationSourceTest 8 0 0 0 100% 0.054
YamlDefinitionProviderTest 4 0 0 0 100% 3.061
YamlReaderTest 16 0 0 0 100% 0.023

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.247
checksForRights 0.012
streamClosedCorrectlyEvenThoughExceptionOccurs 0.012

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.048
definitionProviderViewNullCheck 0.002
convertsSimpleProperty 0.002
convertsNestedClasses 0.002
nestedCollectionsHandledCorrectly 0.002
sameDefinitionProducedAfterJcrToYamlConversion 0.234
convertsCollection 0.002

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.002
overlaysMapOfMapsAtPath 0.002
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.002
extractsNameKeysFromElementsOfListOfMaps 0.001
doesNotYieldNPEOnNullInput 0.001

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.077
modifyListPropertyElement 0.015
canWrapBeanWithCycles 0.021
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0
stringsAreNotWrapped 0.001
canWrapProxiedObject 0.007
modifySimpleProperty 0.001
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.001
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.009
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.01
singleQuery 0.003
singleQueryByModuleAndName 0.001
singleQueryByName 0.001
queryByModuleName 0.002
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.012
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.006

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.003

RegistryFacadeImplTest

singleQuery 0.004
byModuleAggregatesFromDifferentRegistries 0.002

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.005
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.003
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.023
testReloadsOnChange 1.077
testRawViewGeneration 0.02
testRegistersOnStart 0.009

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.004
mapOfSimpleTypes 0.003
simpleValues 0.002
mapOfComplexTypes 0.002
collectionOfComplexTypes 0.004

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.007
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.001

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.059
decoratesRoot 0.024
decoratesNamedLists 0.019
decoratesTypeInformation 0.031
decoratesMapMember 0.02
decoratesMapWithArbitraryValueType 0.031

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.002
registerProviderEvenIfFileCantBeLoaded 0.005
nameFromDefHasPriority 0.004
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.004
detectsYamlDefinitionDecoratorUponStart 0.014
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.015
registerProviderWithNullResource 0.003
registersWithInvalidYaml 0.007

YamlDefinitionProviderTest

gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.018
reactsOnIncludedFileChange 1.02
doesNotFailWhenBoundToEmptyFile 1.017
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.006

YamlReaderTest

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