Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
158 0 0 0 100% 5.424

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.282
info.magnolia.config.converters 10 0 0 0 100% 0.346
info.magnolia.config.map2bean 34 0 0 0 100% 0.13
info.magnolia.config.registry 21 0 0 0 100% 0.058
info.magnolia.config.source 2 0 0 0 100% 0.003
info.magnolia.config.source.yaml 41 0 0 0 100% 3.11
info.magnolia.config.source.raw 5 0 0 0 100% 0.016
info.magnolia.config.source.jcr 4 0 0 0 100% 1.102
info.magnolia.config.source.yaml.decoration 11 0 0 0 100% 0.228
info.magnolia.config 15 0 0 0 100% 0.136
info.magnolia.config.maputil 8 0 0 0 100% 0.006
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.007

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

info.magnolia.config.converters

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

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 34 0 0 0 100% 0.13

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.042
RegistryFacadeImplTest 4 0 0 0 100% 0.007
RegistryMapTest 5 0 0 0 100% 0.006
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.006
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0
YamlConfigurationSourceTest 9 0 0 0 100% 0.055
YamlDefinitionProviderTest 4 0 0 0 100% 3.037
YamlReaderTest 16 0 0 0 100% 0.012

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 2 0 0 0 100% 0.008
YamlDefinitionDecoratorTest 9 0 0 0 100% 0.22

info.magnolia.config

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

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

info.magnolia.config.registry.decoration

Class Tests Errors Failures Skipped Success Rate Time
CachingDefinitionDecoratorTest 3 0 0 0 100% 0.005
DefinitionDecoratorsTest 1 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.257
checksForRights 0.013
streamClosedCorrectlyEvenThoughExceptionOccurs 0.012

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.05
definitionProviderViewNullCheck 0.047
convertsSimpleProperty 0.002
convertsNestedClasses 0.001
nestedCollectionsHandledCorrectly 0.001
sameDefinitionProducedAfterJcrToYamlConversion 0.24
convertsCollection 0.001

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.002
handlesSubBeans 0.002
handlesCollectionProperties 0

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.001
overlaysMapOfMapsAtPath 0.001
overlaysMapOfMapsAtRoot 0.001

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.002
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

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

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.009
singleQuery 0.003
singleQueryByModuleAndPartialName 0.002
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.002
singleQueryByName 0.002
queryByModuleName 0.003
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.017
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.002

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.003

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.002

RegistryFacadeImplTest

singleQuery 0.002
byModuleAggregatesFromDifferentRegistries 0.001
providersByType 0.003
providersByConfigurationSourceType 0.001

RegistryMapTest

removeAndPutAll 0.001
canReRegisterDefinitionWithTheSameMetadata 0.001
idAlreadyRegistered 0.003
putAndGet 0
remove 0.001

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.002
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.002
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.029
testReloadsOnChange 1.046
testRawViewGeneration 0.016
testRegistersOnStart 0.011

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.005
mapOfSimpleTypes 0.004
simpleValues 0.003
mapOfComplexTypes 0.002
collectionOfComplexTypes 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.006
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.061
decoratesRoot 0.021
decoratesNamedLists 0.02
decoratesTypeInformation 0.026
decorationProblemsAreAggregated 0.024
emptyDecoratorIsLoggedAsProblem 0.015
decoratesMapMember 0.019
decoratesMapWithArbitraryValueType 0.016
removingDecoratorOfDeletedResourceDoesNotThrowException 0.018

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.004
registerProviderEvenIfFileCantBeLoaded 0.009
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.003
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.003
detectsYamlDefinitionDecoratorUponStart 0.007
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.011
registerProviderWithNullResource 0.002
registersWithInvalidYaml 0.016
transformationResultProblemsAreAggregatedByDefinitionProvider 0

YamlDefinitionProviderTest

gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.008
reactsOnIncludedFileChange 1.013
doesNotFailWhenBoundToEmptyFile 1.011
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.005

YamlReaderTest

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