Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.215
info.magnolia.config.converters 10 0 0 0 100% 0.248
info.magnolia.config.map2bean 34 0 0 0 100% 0.096
info.magnolia.config.registry 21 0 0 0 100% 0.035
info.magnolia.config.source 2 0 0 0 100% 0
info.magnolia.config.source.yaml 41 0 0 0 100% 3.104
info.magnolia.config.source.raw 5 0 0 0 100% 0.009
info.magnolia.config.source.jcr 4 0 0 0 100% 1.058
info.magnolia.config.source.yaml.decoration 11 0 0 0 100% 0.248
info.magnolia.config 15 0 0 0 100% 0.103
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.215

info.magnolia.config.converters

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

info.magnolia.config.map2bean

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.028
RegistryFacadeImplTest 4 0 0 0 100% 0.006
RegistryMapTest 5 0 0 0 100% 0.001
RegistryTypeNameUtilTest 2 0 0 0 100% 0

info.magnolia.config.source

Class Tests Errors Failures Skipped Success Rate Time
AbstractConfigurationSourceBuilderTest 2 0 0 0 100% 0

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.003
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.001
YamlConfigurationSourceTest 9 0 0 0 100% 0.045
YamlDefinitionProviderTest 4 0 0 0 100% 3.042
YamlReaderTest 16 0 0 0 100% 0.013

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

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

info.magnolia.config

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

info.magnolia.config.maputil

Class Tests Errors Failures Skipped Success Rate Time
ConfigurationMapOverlayTest 3 0 0 0 100% 0.002
ToMapTest 5 0 0 0 100% 0.002

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.195
checksForRights 0.009
streamClosedCorrectlyEvenThoughExceptionOccurs 0.011

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.021
definitionProviderViewNullCheck 0.038
convertsSimpleProperty 0.001
convertsNestedClasses 0.001
nestedCollectionsHandledCorrectly 0.001
sameDefinitionProducedAfterJcrToYamlConversion 0.182
convertsCollection 0.001

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.007
toBeanResolvesClassPropertyType 0.001
toBeanSupportsNullClassProperties 0
toBeanResolvesBeanLists 0.003
beanSetterInvocationProblemIsTracked 0.007
toBeanResolvesSimpleLists 0.001
toBeanDoesntInvokeGetters 0.035
toBeanSupportsNonTypedMaps 0.002
toBeanSupportsNonTypedLists 0.001
toBeanSupportsNullOrEmptyMap 0.001
initIsCalledAfterBeanIsPopulated 0.002
beanTypeResolutionProblemIsTracked 0.001
invalidClassPropertyValueIsTrackedAsProblem 0.001
toBeanInstantiatesTargetTypeDefinedByTheClassPropertyAndResolvesSubTypeMapping 0.003
toBeanResolvesIterablesOfPrimitives 0.001
toBeanResolvesNamePropertyInBeanMaps 0.002
beanInitialisationProblemIsTracked 0.002
toBeanResolvesBeanMaps 0.001
transformationOfNullInputIsTrackedAsProblem 0.001
toBeanPreservesOrderingOfBeanMaps 0.001
toBeanResolvesNameProperty 0
toBeanResolvesBasicPropertyTypes 0
initIsCalledAfterBeanIsMapped 0.004
simpleValueConversionProblemIsTracked 0.001
toBeanResolvesListsAndIgnoresElementsWithIncompatibleType 0.003
toBeanResolvesSubBeans 0.001
unknownPropertiesAreTracked 0.004
toBeanResolvesNamePropertyInBeanListsFromMaps 0.002

ConfigurationMapOverlayTest

createsMissingMapLayers 0.001
overlaysMapOfMapsAtPath 0.001
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.002
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.064
modifyListPropertyElement 0.016
canWrapBeanWithCycles 0.009
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0
stringsAreNotWrapped 0
canWrapProxiedObject 0.006
modifySimpleProperty 0
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.001
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.01
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.002

RegistryFacadeImplTest

singleQuery 0.002
byModuleAggregatesFromDifferentRegistries 0.001
providersByType 0.002
providersByConfigurationSourceType 0.001

RegistryMapTest

removeAndPutAll 0
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.001
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0
providesHumanReadablePluralRegistryName 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0
nameOfCorrectlyHandlesCommonCapitalizationCases 0

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.002
testReloadsOnChange 1.033
testRawViewGeneration 0.013
testRegistersOnStart 0.01

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.003
mapOfSimpleTypes 0.002
simpleValues 0.001
mapOfComplexTypes 0.002
collectionOfComplexTypes 0.001

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.081
decoratesRoot 0.029
decoratesNamedLists 0.015
decoratesTypeInformation 0.041
decorationProblemsAreAggregated 0.018
emptyDecoratorIsLoggedAsProblem 0.011
decoratesMapMember 0.03
decoratesMapWithArbitraryValueType 0.011
removingDecoratorOfDeletedResourceDoesNotThrowException 0.012

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.002
registerProviderEvenIfFileCantBeLoaded 0.022
nameComesFromDefAndIsAvailableOnMetadataAsWell 0
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0
detectsYamlDefinitionDecoratorUponStart 0
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.013
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.005
transformationResultProblemsAreAggregatedByDefinitionProvider 0.002

YamlDefinitionProviderTest

gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.011
reactsOnIncludedFileChange 1.013
doesNotFailWhenBoundToEmptyFile 1.012
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.006

YamlReaderTest

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