Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.829
info.magnolia.config.converters 10 0 0 0 100% 0.249
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.091
info.magnolia.config.registry 23 0 0 0 100% 0.04
info.magnolia.config.source 2 0 0 0 100% 0.003
info.magnolia.config.source.yaml 48 0 0 0 100% 3.238
info.magnolia.config.source.raw 5 0 0 0 100% 0.011
info.magnolia.config.source.jcr 4 0 0 0 100% 1.089
info.magnolia.config.source.yaml.decoration 12 0 0 0 100% 0.194
info.magnolia.config 15 0 0 0 100% 0.106
info.magnolia.config.maputil 8 0 0 0 100% 0.004
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.005

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

info.magnolia.config.converters

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

info.magnolia.config.map2bean

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.029
DefinitionQueryImplTest 2 0 0 0 100% 0
RegistryFacadeImplTest 4 0 0 0 100% 0.006
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.003

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.007
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0
YamlConfigurationSourceTest 9 0 0 0 100% 0.032
YamlDefinitionProviderTest 11 0 0 0 100% 3.183
YamlReaderTest 16 0 0 0 100% 0.016

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.009
YamlDefinitionDecoratorTest 9 0 0 0 100% 0.185

info.magnolia.config

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

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

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.81
checksForRights 0.009
streamClosedCorrectlyEvenThoughExceptionOccurs 0.01

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.029
definitionProviderViewNullCheck 0.005
convertsSimpleProperty 0.004
convertsNestedClasses 0.004
nestedCollectionsHandledCorrectly 0.004
sameDefinitionProducedAfterJcrToYamlConversion 0.196
convertsCollection 0.004

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.002
overlaysMapOfMapsAtPath 0.001
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.001
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.067
modifyListPropertyElement 0.013
canWrapBeanWithCycles 0.011
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0
stringsAreNotWrapped 0
canWrapProxiedObject 0.006
modifySimpleProperty 0.001
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.007
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.007
singleQuery 0.003
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.001
singleQueryByName 0.002
queryByModuleName 0.002
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.01
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.002

DefinitionQueryImplTest

queryByName 0
queryByLocation 0

RegistryFacadeImplTest

singleQuery 0.002
byModuleAggregatesFromDifferentRegistries 0.001
providersByType 0.002
providersByConfigurationSourceType 0.001

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.001
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.002
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.002
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.012
testReloadsOnChange 1.055
testRawViewGeneration 0.015
testRegistersOnStart 0.007

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.003
mapOfSimpleTypes 0.002
simpleValues 0.002
mapOfComplexTypes 0.002
collectionOfComplexTypes 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.006
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.001
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.043
decoratesRoot 0.015
decoratesNamedLists 0.025
decoratesTypeInformation 0.019
decorationProblemsAreAggregated 0.026
emptyDecoratorIsLoggedAsProblem 0.011
decoratesMapMember 0.012
decoratesMapWithArbitraryValueType 0.019
removingDecoratorOfDeletedResourceDoesNotThrowException 0.015

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.001
registerProviderEvenIfFileCantBeLoaded 0.005
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.002
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0
detectsYamlDefinitionDecoratorUponStart 0.006
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.011
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.004
transformationResultProblemsAreAggregatedByDefinitionProvider 0.002

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.019
decorationWithOverride 0.019
complexInheritanceWithOverriding 0.036
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.014
reactsOnIncludedFileChange 1.012
doesNotFailWhenBoundToEmptyFile 1.011
definitionInheritanceWithNameAsId 0.015
includeWithOverriding 0.016
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.013
simpleOverride 0.014
simpleInheritance 0.014

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped