Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
168 0 0 1 99.405% 6.094

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.038
info.magnolia.config.converters 10 0 0 0 100% 0.069
info.magnolia.config.registry 23 0 0 0 100% 0.044
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.14
info.magnolia.config.source.yaml 48 0 0 0 100% 3.449
info.magnolia.config.source 2 0 0 0 100% 0.184
info.magnolia.config.source.raw 5 0 0 0 100% 0.008
info.magnolia.config.source.jcr 4 0 0 0 100% 1.406
info.magnolia.config.source.yaml.decoration 12 0 0 0 100% 0.489
info.magnolia.config 15 0 0 0 100% 0.079
info.magnolia.config.maputil 8 0 0 0 100% 0.162
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.026

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

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.067
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.002

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
DefinitionQueryImplTest 2 0 0 0 100% 0.004
RegistryTypeNameUtilTest 2 0 0 0 100% 0.001
RegistryFacadeImplTest 4 0 0 0 100% 0.013
AbstractRegistryTest 10 0 0 0 100% 0.021
RegistryMapTest 5 0 0 0 100% 0.005

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 34 0 0 1 97.059% 0.14

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.005
YamlReaderTest 16 0 0 0 100% 0.024
YamlDefinitionProviderTest 11 0 0 0 100% 3.362
YamlConfigurationSourceTest 9 0 0 0 100% 0.056
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.002

info.magnolia.config.source

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

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.016
YamlDefinitionDecoratorTest 9 0 0 0 100% 0.473

info.magnolia.config

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

info.magnolia.config.maputil

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

info.magnolia.config.registry.decoration

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

Test Cases

[Summary] [Package List] [Test Cases]

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.017
definitionProviderViewNullCheck 0.007
convertsSimpleProperty 0.009
convertsNestedClasses 0.006
nestedCollectionsHandledCorrectly 0.007
sameDefinitionProducedAfterJcrToYamlConversion 0.016
convertsCollection 0.005

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0
handlesSubBeans 0.001
handlesCollectionProperties 0.001

RegexBasedPathToMetadataInferrerTest

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

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.015
modifyListPropertyElement 0.026
canWrapBeanWithCycles 0.015
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0
canWrapProxiedObject 0.01
modifySimpleProperty 0.001
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.01
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

YamlReaderTest

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

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.002
mapOfSimpleTypes 0.001
simpleValues 0.002
mapOfComplexTypes 0.001
collectionOfComplexTypes 0.002

ConfigurationMapOverlayTest

createsMissingMapLayers 0.069
overlaysMapOfMapsAtPath 0.075
overlaysMapOfMapsAtRoot 0

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.014
cachedDecorationResult 0.004
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionQueryImplTest

queryByName 0.003
queryByLocation 0.001

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.05
decorationWithOverride 0.043
complexInheritanceWithOverriding 0.065
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.042
reactsOnIncludedFileChange 1.028
doesNotFailWhenBoundToEmptyFile 1.022
definitionInheritanceWithNameAsId 0.025
includeWithOverriding 0.026
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.015
simpleOverride 0.022
simpleInheritance 0.024

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.002
registerProviderEvenIfFileCantBeLoaded 0.006
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.005
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.005
detectsYamlDefinitionDecoratorUponStart 0.009
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.01
registerProviderWithNullResource 0.006
registersWithInvalidYaml 0.009
transformationResultProblemsAreAggregatedByDefinitionProvider 0.004

ToMapTest

merelyTypeCastsMap 0.001
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.011
extractsNameKeysFromElementsOfListOfMaps 0.002
doesNotYieldNPEOnNullInput 0.003

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0
providesHumanReadablePluralRegistryName 0.001

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.016
checksForRights 0.015
streamClosedCorrectlyEvenThoughExceptionOccurs 0.007

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.237
testReloadsOnChange 1.133
testRawViewGeneration 0.022
testRegistersOnStart 0.014

RegistryFacadeImplTest

singleQuery 0.004
byModuleAggregatesFromDifferentRegistries 0.004
providersByType 0.003
providersByConfigurationSourceType 0.002

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.002
singleQuery 0.001
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.002
singleQueryByName 0.001
queryByModuleName 0.001
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.009
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.002

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.011
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.003

Map2BeanTransformerTest

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

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.007

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.004
putAndGet 0
remove 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.182
nameOfCorrectlyHandlesCommonCapitalizationCases 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.265
decoratesRoot 0.021
decoratesNamedLists 0.022
decoratesTypeInformation 0.043
decorationProblemsAreAggregated 0.027
emptyDecoratorIsLoggedAsProblem 0.024
decoratesMapMember 0.019
decoratesMapWithArbitraryValueType 0.022
removingDecoratorOfDeletedResourceDoesNotThrowException 0.03

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped