Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
160 0 0 1 99.375% 5.193

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.273
info.magnolia.config.converters 10 0 0 0 100% 0.281
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.106
info.magnolia.config.registry 23 0 0 0 100% 0.057
info.magnolia.config.source 2 0 0 0 100% 0.003
info.magnolia.config.source.yaml 41 0 0 0 100% 3.089
info.magnolia.config.source.raw 5 0 0 0 100% 0.01
info.magnolia.config.source.jcr 4 0 0 0 100% 1.085
info.magnolia.config.source.yaml.decoration 11 0 0 0 100% 0.171
info.magnolia.config 15 0 0 0 100% 0.111
info.magnolia.config.maputil 8 0 0 0 100% 0.004
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.273

info.magnolia.config.converters

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.033
DefinitionQueryImplTest 2 0 0 0 100% 0.001
RegistryFacadeImplTest 4 0 0 0 100% 0.009
RegistryMapTest 5 0 0 0 100% 0.011
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.005
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.001
YamlConfigurationSourceTest 9 0 0 0 100% 0.033
YamlDefinitionProviderTest 4 0 0 0 100% 3.037
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.01

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

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

info.magnolia.config

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

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.251
checksForRights 0.01
streamClosedCorrectlyEvenThoughExceptionOccurs 0.012

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.038
definitionProviderViewNullCheck 0.04
convertsSimpleProperty 0.005
convertsNestedClasses 0.006
nestedCollectionsHandledCorrectly 0.006
sameDefinitionProducedAfterJcrToYamlConversion 0.179
convertsCollection 0.004

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0

Map2BeanTransformerTest

toBeanResolvesSimpleMaps 0.002
toBeanSupportsNullProperties 0.002
toBeanInstantiatesTargetTypeDefinedByTheClassProperty 0.002
toBeanResolvesEmptyLists 0.001
emptyNameIsNotForciblySetByMap2Bean 0.002
toBeanResolvesEnums 0.001
toBeanResolvesBeanListsFromMaps 0.008
toBeanResolvesClassPropertyType 0.001
toBeanSupportsNullClassProperties 0.001
toBeanResolvesBeanLists 0.004
beanSetterInvocationProblemIsTracked 0.005
toBeanResolvesSimpleLists 0.001
toBeanDoesntInvokeGetters 0.04
toBeanSupportsNonTypedMaps 0.002
toBeanSupportsNonTypedLists 0.002
toBeanSupportsNullOrEmptyMap 0.002
initIsCalledAfterBeanIsPopulated 0.002
beanTypeResolutionProblemIsTracked 0
skipped
invalidClassPropertyValueIsTrackedAsProblem 0.002
toBeanInstantiatesTargetTypeDefinedByTheClassPropertyAndResolvesSubTypeMapping 0.003
toBeanResolvesIterablesOfPrimitives 0.001
toBeanResolvesNamePropertyInBeanMaps 0.001
beanInitialisationProblemIsTracked 0.001
toBeanResolvesBeanMaps 0.001
transformationOfNullInputIsTrackedAsProblem 0.001
toBeanPreservesOrderingOfBeanMaps 0.002
toBeanResolvesNameProperty 0.001
toBeanResolvesBasicPropertyTypes 0.001
initIsCalledAfterBeanIsMapped 0.004
simpleValueConversionProblemIsTracked 0.001
toBeanResolvesListsAndIgnoresElementsWithIncompatibleType 0.004
toBeanResolvesSubBeans 0.001
unknownPropertiesAreTracked 0.002
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.066
modifyListPropertyElement 0.015
canWrapBeanWithCycles 0.011
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0
canWrapProxiedObject 0.008
modifySimpleProperty 0
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.009
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.008
singleQuery 0.003
singleQueryByModuleAndPartialName 0.002
singleQueryByModuleAndName 0
singleQueryByPartialName 0.001
singleQueryByName 0.002
queryByModuleName 0.002
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.012
singleQueryFailsIfMultipleMatches 0.002
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.001

DefinitionQueryImplTest

queryByName 0
queryByLocation 0.001

RegistryFacadeImplTest

singleQuery 0.004
byModuleAggregatesFromDifferentRegistries 0.001
providersByType 0.002
providersByConfigurationSourceType 0.002

RegistryMapTest

removeAndPutAll 0.008
canReRegisterDefinitionWithTheSameMetadata 0
idAlreadyRegistered 0.003
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.002
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.002
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.011
testReloadsOnChange 1.051
testRawViewGeneration 0.014
testRegistersOnStart 0.009

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.003
mapOfSimpleTypes 0.002
simpleValues 0.002
mapOfComplexTypes 0.002
collectionOfComplexTypes 0.001

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.005
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.001

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.048
decoratesRoot 0.014
decoratesNamedLists 0.015
decoratesTypeInformation 0.021
decorationProblemsAreAggregated 0.018
emptyDecoratorIsLoggedAsProblem 0.014
decoratesMapMember 0.012
decoratesMapWithArbitraryValueType 0.011
removingDecoratorOfDeletedResourceDoesNotThrowException 0.012

RegexBasedPathToMetadataInferrerTest

moduleIsFoundFromPattern 0
nameIsFoundFromNamedPattern 0.001
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.002
registerProviderEvenIfFileCantBeLoaded 0.005
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.003
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.003
detectsYamlDefinitionDecoratorUponStart 0.004
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.008
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.005
transformationResultProblemsAreAggregatedByDefinitionProvider 0.002

YamlDefinitionProviderTest

gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.009
reactsOnIncludedFileChange 1.012
doesNotFailWhenBoundToEmptyFile 1.011
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.005

YamlReaderTest

readerGetsClosed 0
tabsCanBeUsedInScalars 0.001
syntaxQuirks 0.001
loadingListAsRootObjectShouldFail 0.001
includesWithAbsolutePaths 0.002
tabsCantBeUsedToIndent 0.001
canHandleNonBreakingWhiteSpace 0.001
brokenIndentationLeadsToUnderstandableErrorMessages 0.001
singleLineYamlCanBeRead 0
references 0.001
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