Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.258
info.magnolia.config.converters 10 0 0 0 100% 0.29
info.magnolia.config.map2bean 34 0 0 1 97.059% 0.108
info.magnolia.config.registry 23 0 0 0 100% 0.042
info.magnolia.config.source 2 0 0 0 100% 0
info.magnolia.config.source.yaml 41 0 0 0 100% 3.081
info.magnolia.config.source.raw 5 0 0 0 100% 0.009
info.magnolia.config.source.jcr 4 0 0 0 100% 1.068
info.magnolia.config.source.yaml.decoration 11 0 0 0 100% 0.164
info.magnolia.config 15 0 0 0 100% 0.083
info.magnolia.config.maputil 8 0 0 0 100% 0
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.002

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

info.magnolia.config.converters

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

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 10 0 0 0 100% 0.034
DefinitionQueryImplTest 2 0 0 0 100% 0.001
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
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0
YamlConfigurationSourceTest 9 0 0 0 100% 0.049
YamlDefinitionProviderTest 4 0 0 0 100% 3.021
YamlReaderTest 16 0 0 0 100% 0.011

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

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

info.magnolia.config

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

info.magnolia.config.maputil

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

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.236
checksForRights 0.009
streamClosedCorrectlyEvenThoughExceptionOccurs 0.013

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.044
definitionProviderViewNullCheck 0.04
convertsSimpleProperty 0.006
convertsNestedClasses 0.006
nestedCollectionsHandledCorrectly 0.005
sameDefinitionProducedAfterJcrToYamlConversion 0.181
convertsCollection 0.005

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.001
handlesCollectionProperties 0.001

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0
overlaysMapOfMapsAtPath 0
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0
producesMapWithSequentialStringKeysForListWithoutNameProperty 0
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.05
modifyListPropertyElement 0.013
canWrapBeanWithCycles 0.008
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0
canWrapProxiedObject 0.006
modifySimpleProperty 0
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0
equalsWithComplexFieldsModified 0
enumsAreNotWrapped 0
toStringInvocation 0.005
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.007
singleQuery 0.003
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.001
singleQueryByPartialName 0.001
singleQueryByName 0.002
queryByModuleName 0.002
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.015
singleQueryFailsIfMultipleMatches 0.001
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0.001

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0

DefinitionQueryImplTest

queryByName 0
queryByLocation 0.001

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.004
testReloadsOnChange 1.042
testRawViewGeneration 0.013
testRegistersOnStart 0.009

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.002
mapOfSimpleTypes 0.002
simpleValues 0.002
mapOfComplexTypes 0.001
collectionOfComplexTypes 0.002

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.005
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.001

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.046
decoratesRoot 0.013
decoratesNamedLists 0.012
decoratesTypeInformation 0.018
decorationProblemsAreAggregated 0.019
emptyDecoratorIsLoggedAsProblem 0.01
decoratesMapMember 0.011
decoratesMapWithArbitraryValueType 0.029
removingDecoratorOfDeletedResourceDoesNotThrowException 0

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0
registerProviderEvenIfFileCantBeLoaded 0.004
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.003
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.002
detectsYamlDefinitionDecoratorUponStart 0.005
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.007
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.027
transformationResultProblemsAreAggregatedByDefinitionProvider 0

YamlDefinitionProviderTest

gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 0.99
reactsOnIncludedFileChange 1.013
doesNotFailWhenBoundToEmptyFile 1.012
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.006

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped