Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.392
info.magnolia.config.converters 10 0 0 0 100% 0.391
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.137
info.magnolia.config.registry 23 0 0 0 100% 0.078
info.magnolia.config.source 2 0 0 0 100% 0.003
info.magnolia.config.source.yaml 48 0 0 0 100% 3.52
info.magnolia.config.source.raw 5 0 0 0 100% 0.016
info.magnolia.config.source.jcr 4 0 0 0 100% 1.092
info.magnolia.config.source.yaml.decoration 12 0 0 0 100% 0.35
info.magnolia.config 15 0 0 0 100% 0.141
info.magnolia.config.maputil 8 0 0 0 100% 0.008
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.003

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

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.388
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.137

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.061
DefinitionQueryImplTest 2 0 0 0 100% 0.001
RegistryFacadeImplTest 4 0 0 0 100% 0.009
RegistryMapTest 5 0 0 0 100% 0.004
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.013
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.006
YamlConfigurationSourceTest 9 0 0 0 100% 0.094
YamlDefinitionProviderTest 11 0 0 0 100% 3.376
YamlReaderTest 16 0 0 0 100% 0.031

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.017
YamlDefinitionDecoratorTest 9 0 0 0 100% 0.333

info.magnolia.config

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

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.002
DefinitionDecoratorsTest 1 0 0 0 100% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.363
checksForRights 0.014
streamClosedCorrectlyEvenThoughExceptionOccurs 0.015

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.05
definitionProviderViewNullCheck 0.012
convertsSimpleProperty 0.007
convertsNestedClasses 0.01
nestedCollectionsHandledCorrectly 0.011
sameDefinitionProducedAfterJcrToYamlConversion 0.292
convertsCollection 0.006

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.001
handlesCollectionProperties 0.001

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.001
overlaysMapOfMapsAtPath 0.003
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.003
extractsNameKeysFromElementsOfListOfMaps 0.001
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.083
modifyListPropertyElement 0.026
canWrapBeanWithCycles 0.012
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0
canWrapProxiedObject 0.007
modifySimpleProperty 0
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.011
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.011
singleQuery 0.004
singleQueryByModuleAndPartialName 0.002
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.002
singleQueryByName 0.005
queryByModuleName 0.004
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.029
singleQueryFailsIfMultipleMatches 0.002
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.001

DefinitionQueryImplTest

queryByName 0.001
queryByLocation 0

RegistryFacadeImplTest

singleQuery 0.004
byModuleAggregatesFromDifferentRegistries 0.001
providersByType 0.002
providersByConfigurationSourceType 0.002

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.003
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.002
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.003
nameOfCorrectlyHandlesCommonCapitalizationCases 0

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.018
testReloadsOnChange 1.048
testRawViewGeneration 0.014
testRegistersOnStart 0.012

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.005
mapOfSimpleTypes 0.003
simpleValues 0.003
mapOfComplexTypes 0.003
collectionOfComplexTypes 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.013
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.078
decoratesRoot 0.029
decoratesNamedLists 0.03
decoratesTypeInformation 0.038
decorationProblemsAreAggregated 0.033
emptyDecoratorIsLoggedAsProblem 0.02
decoratesMapMember 0.04
decoratesMapWithArbitraryValueType 0.035
removingDecoratorOfDeletedResourceDoesNotThrowException 0.03

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.006

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.006
registerProviderEvenIfFileCantBeLoaded 0.029
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.007
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.005
detectsYamlDefinitionDecoratorUponStart 0.009
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.018
registerProviderWithNullResource 0.003
registersWithInvalidYaml 0.012
transformationResultProblemsAreAggregatedByDefinitionProvider 0.005

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.032
decorationWithOverride 0.068
complexInheritanceWithOverriding 0.096
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.021
reactsOnIncludedFileChange 1.013
doesNotFailWhenBoundToEmptyFile 1.011
definitionInheritanceWithNameAsId 0.031
includeWithOverriding 0.035
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.017
simpleOverride 0.02
simpleInheritance 0.032

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped