Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
121 0 0 0 100% 2.529

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.008
info.magnolia.config.source.raw 5 0 0 0 100% 0.021
info.magnolia.config.source 2 0 0 0 100% 0.006
info.magnolia.config.registry.decoration 3 0 0 0 100% 0.005
info.magnolia.config.source.jcr 4 0 0 0 100% 1.128
info.magnolia.config.map2bean 26 0 0 0 100% 0.187
info.magnolia.commands 3 0 0 0 100% 0.406
info.magnolia.config.registry 17 0 0 0 100% 0.081
info.magnolia.config.source.yaml.decoration 8 0 0 0 100% 0.117
info.magnolia.config.converters 10 0 0 0 100% 0.48
info.magnolia.config.source.yaml 35 0 0 0 100% 0.09

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

info.magnolia.config.source.raw

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

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 2 0 0 0 100% 0.002
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.128

info.magnolia.config.map2bean

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

info.magnolia.commands

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

info.magnolia.config.registry

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 2 0 0 0 100% 0.012
YamlDefinitionDecoratorTest 6 0 0 0 100% 0.105

info.magnolia.config.converters

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

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.012
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0
YamlConfigurationSourceTest 7 0 0 0 100% 0.052
YamlReaderTest 16 0 0 0 100% 0.026

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.372
checksForRights 0.017
streamClosedCorrectlyEvenThoughExceptionOccurs 0.017

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.063
definitionProviderViewNullCheck 0.002
convertsSimpleProperty 0.002
convertsNestedClasses 0.002
nestedCollectionsHandledCorrectly 0.002
sameDefinitionProducedAfterJcrToYamlConversion 0.401
convertsCollection 0.002

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.002
handlesSubBeans 0.003
handlesCollectionProperties 0.001

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.002
overlaysMapOfMapsAtPath 0.002
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.002
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.028
singleQuery 0.009
singleQueryByModuleAndName 0.009
singleQueryByName 0.002
queryByModuleName 0.004
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.018
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.003

RegistryFacadeImplTest

singleQuery 0.003
byModuleAggregatesFromDifferentRegistries 0.001

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.003
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.004
nameOfCorrectlyHandlesCommonCapitalizationCases 0.002

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.024
testReloadsOnChange 1.051
testRawViewGeneration 0.034
testRegistersOnStart 0.019

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.005
mapOfSimpleTypes 0.004
simpleValues 0.004
mapOfComplexTypes 0.004
collectionOfComplexTypes 0.004

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.01
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.025
decoratesRoot 0.013
decoratesNamedLists 0.014
decoratesTypeInformation 0.025
decoratesMapMember 0.015
decoratesMapWithArbitraryValueType 0.013

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.014
registerProviderEvenIfFileCantBeLoaded 0.008
nameFromDefHasPriority 0.009
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.005
detectsYamlDefinitionDecoratorUponStart 0.009
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.006

YamlReaderTest

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