Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
182 0 0 1 99.451% 6.135

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.commands 3 0 0 0 100% 0.698
info.magnolia.config.converters 10 0 0 0 100% 0.324
info.magnolia.config.map2bean 35 0 0 1 97.143% 0.133
info.magnolia.config.registry 27 0 0 0 100% 0.068
info.magnolia.config.source 2 0 0 0 100% 0.003
info.magnolia.config.source.yaml 54 0 0 0 100% 3.377
info.magnolia.config.source.raw 6 0 0 0 100% 0.016
info.magnolia.config.source.jcr 4 0 0 0 100% 1.106
info.magnolia.config.source.yaml.decoration 14 0 0 0 100% 0.269
info.magnolia.config 15 0 0 0 100% 0.129
info.magnolia.config.maputil 8 0 0 0 100% 0.006
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.006

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

info.magnolia.commands

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

info.magnolia.config.converters

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

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 35 0 0 1 97.143% 0.133

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 13 0 0 0 100% 0.056
DefinitionQueryImplTest 2 0 0 0 100% 0.002
RegistryFacadeImplTest 4 0 0 0 100% 0.007
RegistryMapTest 6 0 0 0 100% 0.002
RegistryTypeNameUtilTest 2 0 0 0 100% 0.001

info.magnolia.config.source

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

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 9 0 0 0 100% 0.051
YamlDefinitionProviderTest 16 0 0 0 100% 3.305
YamlReaderTest 17 0 0 0 100% 0.014

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.009
YamlDefinitionDecoratorTest 11 0 0 0 100% 0.26

info.magnolia.config

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

info.magnolia.config.maputil

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

info.magnolia.config.registry.decoration

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.677
checksForRights 0.011
streamClosedCorrectlyEvenThoughExceptionOccurs 0.01

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.036
definitionProviderViewNullCheck 0.008
convertsSimpleProperty 0.013
convertsNestedClasses 0.005
nestedCollectionsHandledCorrectly 0.004
sameDefinitionProducedAfterJcrToYamlConversion 0.251
convertsCollection 0.004

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.001
overlaysMapOfMapsAtPath 0.002
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.001
extractsNameKeysFromElementsOfListOfMaps 0.001
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.075
modifyListPropertyElement 0.019
canWrapBeanWithCycles 0.012
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0
stringsAreNotWrapped 0
canWrapProxiedObject 0.01
modifySimpleProperty 0
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.012
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.011
singleQuery 0.005
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
unregisterDecoratedDefinition 0.012
singleQueryByPartialName 0.001
singleQueryByName 0.002
addDecoratorTargetingNonExistingDefinition 0.005
queryByModuleName 0.003
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.009
singleQueryFailsIfMultipleMatches 0.001
validateAlsoDecoratedDefinition 0.003
singleQueryFailsIfNoMatch 0.002

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0
cachedDecorationResult 0.002
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.003

DefinitionQueryImplTest

queryByName 0.001
queryByLocation 0.001

RegistryFacadeImplTest

singleQuery 0.003
byModuleAggregatesFromDifferentRegistries 0.002
providersByType 0.001
providersByConfigurationSourceType 0.001

RegistryMapTest

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

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.001
providesHumanReadablePluralRegistryName 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.002
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.012
testReloadsOnChange 1.036
testRawViewGeneration 0.049
testRegistersOnStart 0.009

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.004
mapOfSimpleTypes 0.002
simpleValues 0.002
mapOfComplexTypes 0.003
collectionOfComplexTypes 0.003
mapOfSimpleTypesWithNonStringKeys 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.007
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.001
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.001

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.051
decoratesRoot 0.017
decoratesNamedLists 0.016
decoratesTypeInformation 0.024
decorationProblemsAreAggregated 0.028
decoratesMapWithDigitKeys 0.026
emptyDecoratorIsLoggedAsProblem 0.022
cannotDecorateMapProblemShouldHaveSevereLevel 0.03
decoratesMapMember 0.018
decoratesMapWithArbitraryValueType 0.015
removingDecoratorOfDeletedResourceDoesNotThrowException 0.013

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.002
registerProviderEvenIfFileCantBeLoaded 0.003
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.003
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.003
detectsYamlDefinitionDecoratorUponStart 0.018
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.011
registerProviderWithNullResource 0.002
registersWithInvalidYaml 0.005
transformationResultProblemsAreAggregatedByDefinitionProvider 0.004

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.023
decorationWithOverride 0.027
complexInheritanceWithOverriding 0.059
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.02
reactsOnIncludedFileChange 1.017
doesNotFailWhenBoundToEmptyFile 1.013
deprecateYAMLDefinition 0.025
deprecateYamlDefinitionWithOnlySinceValue 0.013
definitionInheritanceWithNameAsId 0.022
includeWithOverriding 0.022
deprecateYamlDefinitionWhichInheritsOtherDefinition 0.013
deprecateYamlDefinitionContainsDescriptionWithSpaces 0.01
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.007
deprecationInformationRemovedFromMetadata 0.008
simpleOverride 0.013
simpleInheritance 0.013

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped