Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.691
info.magnolia.config.converters 10 0 0 0 100% 0.421
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.207
info.magnolia.config.registry 23 0 0 0 100% 0.123
info.magnolia.config.source 2 0 0 0 100% 0.004
info.magnolia.config.source.yaml 48 0 0 0 100% 3.526
info.magnolia.config.source.raw 5 0 0 0 100% 0.021
info.magnolia.config.source.jcr 4 0 0 0 100% 1.123
info.magnolia.config.source.yaml.decoration 12 0 0 0 100% 0.417
info.magnolia.config 15 0 0 0 100% 0.167
info.magnolia.config.maputil 8 0 0 0 100% 0.008
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.008

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

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.416
RawDefinitionViewToMapConverterTest 3 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.207

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.097
DefinitionQueryImplTest 2 0 0 0 100% 0.002
RegistryFacadeImplTest 4 0 0 0 100% 0.016
RegistryMapTest 5 0 0 0 100% 0.004
RegistryTypeNameUtilTest 2 0 0 0 100% 0.004

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.01
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.002
YamlConfigurationSourceTest 9 0 0 0 100% 0.091
YamlDefinitionProviderTest 11 0 0 0 100% 3.387
YamlReaderTest 16 0 0 0 100% 0.036

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

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.027
YamlDefinitionDecoratorTest 9 0 0 0 100% 0.39

info.magnolia.config

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

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.006
DefinitionDecoratorsTest 1 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.617
checksForRights 0.013
streamClosedCorrectlyEvenThoughExceptionOccurs 0.061

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.043
definitionProviderViewNullCheck 0.007
convertsSimpleProperty 0.008
convertsNestedClasses 0.006
nestedCollectionsHandledCorrectly 0.007
sameDefinitionProducedAfterJcrToYamlConversion 0.333
convertsCollection 0.012

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.002
handlesSubBeans 0.003
handlesCollectionProperties 0

Map2BeanTransformerTest

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

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.08
modifyListPropertyElement 0.027
canWrapBeanWithCycles 0.017
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0.001
canWrapProxiedObject 0.012
modifySimpleProperty 0
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0.001
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.027
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.057
singleQuery 0.005
singleQueryByModuleAndPartialName 0.002
singleQueryByModuleAndName 0.002
singleQueryByPartialName 0.002
singleQueryByName 0.003
queryByModuleName 0.003
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.018
singleQueryFailsIfMultipleMatches 0.003
singleQueryFailsIfNoMatch 0.002

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.002
invalidatesCacheOnDefinitionProviderModification 0.003

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.002

DefinitionQueryImplTest

queryByName 0.001
queryByLocation 0.001

RegistryFacadeImplTest

singleQuery 0.008
byModuleAggregatesFromDifferentRegistries 0.002
providersByType 0.003
providersByConfigurationSourceType 0.003

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.003
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.003
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.003
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.018
testReloadsOnChange 1.059
testRawViewGeneration 0.027
testRegistersOnStart 0.019

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.009
mapOfSimpleTypes 0.002
simpleValues 0.004
mapOfComplexTypes 0.003
collectionOfComplexTypes 0.003

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.014
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.006
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.007

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.101
decoratesRoot 0.025
decoratesNamedLists 0.031
decoratesTypeInformation 0.042
decorationProblemsAreAggregated 0.063
emptyDecoratorIsLoggedAsProblem 0.031
decoratesMapMember 0.031
decoratesMapWithArbitraryValueType 0.028
removingDecoratorOfDeletedResourceDoesNotThrowException 0.038

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.002

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.004
registerProviderEvenIfFileCantBeLoaded 0.017
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.008
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.008
detectsYamlDefinitionDecoratorUponStart 0.014
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.021
registerProviderWithNullResource 0.004
registersWithInvalidYaml 0.011
transformationResultProblemsAreAggregatedByDefinitionProvider 0.004

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.066
decorationWithOverride 0.045
complexInheritanceWithOverriding 0.104
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.025
reactsOnIncludedFileChange 1.024
doesNotFailWhenBoundToEmptyFile 1.014
definitionInheritanceWithNameAsId 0.022
includeWithOverriding 0.027
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.011
simpleOverride 0.026
simpleInheritance 0.023

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped