Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.411
info.magnolia.config.converters 10 0 0 0 100% 0.402
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.159
info.magnolia.config.registry 23 0 0 0 100% 0.07
info.magnolia.config.source 2 0 0 0 100% 0.003
info.magnolia.config.source.yaml 48 0 0 0 100% 3.299
info.magnolia.config.source.raw 5 0 0 0 100% 0.019
info.magnolia.config.source.jcr 4 0 0 0 100% 1.129
info.magnolia.config.source.yaml.decoration 12 0 0 0 100% 0.299
info.magnolia.config 15 0 0 0 100% 0.196
info.magnolia.config.maputil 8 0 0 0 100% 0.004
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.004

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

info.magnolia.config.converters

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

info.magnolia.config.map2bean

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.045
DefinitionQueryImplTest 2 0 0 0 100% 0.005
RegistryFacadeImplTest 4 0 0 0 100% 0.014
RegistryMapTest 5 0 0 0 100% 0.004
RegistryTypeNameUtilTest 2 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.003

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.005
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.001
YamlConfigurationSourceTest 9 0 0 0 100% 0.043
YamlDefinitionProviderTest 11 0 0 0 100% 3.226
YamlReaderTest 16 0 0 0 100% 0.024

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.013
YamlDefinitionDecoratorTest 9 0 0 0 100% 0.286

info.magnolia.config

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

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.382
checksForRights 0.011
streamClosedCorrectlyEvenThoughExceptionOccurs 0.018

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.047
definitionProviderViewNullCheck 0.012
convertsSimpleProperty 0.019
convertsNestedClasses 0.005
nestedCollectionsHandledCorrectly 0.007
sameDefinitionProducedAfterJcrToYamlConversion 0.301
convertsCollection 0.007

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.003
handlesCollectionProperties 0

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.001
overlaysMapOfMapsAtPath 0.002
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.001
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.104
modifyListPropertyElement 0.038
canWrapBeanWithCycles 0.013
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.003
stringsAreNotWrapped 0
canWrapProxiedObject 0.007
modifySimpleProperty 0.001
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0.001
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.001
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0.001
toStringInvocation 0.025
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.01
singleQuery 0.006
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.002
singleQueryByName 0.003
queryByModuleName 0.004
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.016
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.001

DefinitionQueryImplTest

queryByName 0
queryByLocation 0.005

RegistryFacadeImplTest

singleQuery 0.006
byModuleAggregatesFromDifferentRegistries 0.003
providersByType 0.003
providersByConfigurationSourceType 0.002

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.002
putAndGet 0.001
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.002
providesHumanReadablePluralRegistryName 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.002
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.015
testReloadsOnChange 1.062
testRawViewGeneration 0.037
testRegistersOnStart 0.015

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.005
mapOfSimpleTypes 0.004
simpleValues 0.005
mapOfComplexTypes 0.004
collectionOfComplexTypes 0.001

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.007
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.004

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.062
decoratesRoot 0.023
decoratesNamedLists 0.034
decoratesTypeInformation 0.03
decorationProblemsAreAggregated 0.052
emptyDecoratorIsLoggedAsProblem 0.024
decoratesMapMember 0.018
decoratesMapWithArbitraryValueType 0.021
removingDecoratorOfDeletedResourceDoesNotThrowException 0.022

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.003
registerProviderEvenIfFileCantBeLoaded 0.008
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.004
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.004
detectsYamlDefinitionDecoratorUponStart 0.006
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.008
registerProviderWithNullResource 0.002
registersWithInvalidYaml 0.005
transformationResultProblemsAreAggregatedByDefinitionProvider 0.003

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.021
decorationWithOverride 0.026
complexInheritanceWithOverriding 0.054
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.014
reactsOnIncludedFileChange 1.01
doesNotFailWhenBoundToEmptyFile 1.011
definitionInheritanceWithNameAsId 0.017
includeWithOverriding 0.024
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.01
simpleOverride 0.023
simpleInheritance 0.016

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped