Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
173 0 0 1 99.422% 6.609

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.824
info.magnolia.config.converters 10 0 0 0 100% 0.334
info.magnolia.config.map2bean 35 0 0 1 97.143% 0.13
info.magnolia.config.registry 23 0 0 0 100% 0.059
info.magnolia.config.source 2 0 0 0 100% 0.004
info.magnolia.config.source.yaml 49 0 0 0 100% 3.485
info.magnolia.config.source.raw 6 0 0 0 100% 0.024
info.magnolia.config.source.jcr 4 0 0 0 100% 1.124
info.magnolia.config.source.yaml.decoration 14 0 0 0 100% 0.468
info.magnolia.config 15 0 0 0 100% 0.143
info.magnolia.config.maputil 8 0 0 0 100% 0.008
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.824

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.33
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.004

info.magnolia.config.map2bean

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.043
DefinitionQueryImplTest 2 0 0 0 100% 0.002
RegistryFacadeImplTest 4 0 0 0 100% 0.009
RegistryMapTest 5 0 0 0 100% 0.002
RegistryTypeNameUtilTest 2 0 0 0 100% 0.003

info.magnolia.config.source

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

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.009
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.001
YamlConfigurationSourceTest 9 0 0 0 100% 0.076
YamlDefinitionProviderTest 11 0 0 0 100% 3.37
YamlReaderTest 17 0 0 0 100% 0.029

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.079
YamlDefinitionDecoratorTest 11 0 0 0 100% 0.389

info.magnolia.config

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

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.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.8
checksForRights 0.012
streamClosedCorrectlyEvenThoughExceptionOccurs 0.012

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.043
definitionProviderViewNullCheck 0.007
convertsSimpleProperty 0.007
convertsNestedClasses 0.006
nestedCollectionsHandledCorrectly 0.007
sameDefinitionProducedAfterJcrToYamlConversion 0.254
convertsCollection 0.006

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0.001

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.002
overlaysMapOfMapsAtPath 0.002
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.003
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0.001

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.089
modifyListPropertyElement 0.02
canWrapBeanWithCycles 0.011
mutableWrapperPreservesRuntimeType 0.001
modifyMapPropertyEntry 0
stringsAreNotWrapped 0
canWrapProxiedObject 0.009
modifySimpleProperty 0.001
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.01
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.012
singleQuery 0.005
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.001
singleQueryByName 0.002
queryByModuleName 0.003
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.015
singleQueryFailsIfMultipleMatches 0.002
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.003

DefinitionQueryImplTest

queryByName 0.001
queryByLocation 0.001

RegistryFacadeImplTest

singleQuery 0.003
byModuleAggregatesFromDifferentRegistries 0.002
providersByType 0.002
providersByConfigurationSourceType 0.002

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.001
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.003
providesHumanReadablePluralRegistryName 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.003
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.019
testReloadsOnChange 1.069
testRawViewGeneration 0.025
testRegistersOnStart 0.011

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.006
mapOfSimpleTypes 0.003
simpleValues 0.003
mapOfComplexTypes 0.004
collectionOfComplexTypes 0.003
mapOfSimpleTypesWithNonStringKeys 0.005

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.074
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.003

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.099
decoratesRoot 0.026
decoratesNamedLists 0.027
decoratesTypeInformation 0.037
decorationProblemsAreAggregated 0.034
decoratesMapWithDigitKeys 0.026
emptyDecoratorIsLoggedAsProblem 0.02
cannotDecorateMapProblemShouldHaveSevereLevel 0.036
decoratesMapMember 0.022
decoratesMapWithArbitraryValueType 0.035
removingDecoratorOfDeletedResourceDoesNotThrowException 0.027

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.004
registerProviderEvenIfFileCantBeLoaded 0.009
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.006
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.007
detectsYamlDefinitionDecoratorUponStart 0.014
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.018
registerProviderWithNullResource 0.003
registersWithInvalidYaml 0.01
transformationResultProblemsAreAggregatedByDefinitionProvider 0.005

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.043
decorationWithOverride 0.044
complexInheritanceWithOverriding 0.062
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.044
reactsOnIncludedFileChange 1.028
doesNotFailWhenBoundToEmptyFile 1.021
definitionInheritanceWithNameAsId 0.03
includeWithOverriding 0.032
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.013
simpleOverride 0.028
simpleInheritance 0.025

YamlReaderTest

readerGetsClosed 0
tabsCanBeUsedInScalars 0.001
syntaxQuirks 0.002
loadingListAsRootObjectShouldFail 0.002
includesWithAbsolutePaths 0.004
tabsCantBeUsedToIndent 0.003
mapWithNumberKeys 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.005
canReadEmptyStringProperty 0.001

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped