Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
193 0 0 1 99.482% 12.156

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% 2.779
info.magnolia.config.converters 10 0 0 0 100% 0.824
info.magnolia.config.map2bean 38 0 0 1 97.368% 0.473
info.magnolia.config.registry 29 0 0 0 100% 0.221
info.magnolia.config.source 2 0 0 0 100% 0.006
info.magnolia.config.source.yaml 58 0 0 0 100% 4.792
info.magnolia.config.source.raw 6 0 0 0 100% 0.071
info.magnolia.config.source.jcr 4 0 0 0 100% 1.155
info.magnolia.config.source.yaml.decoration 15 0 0 0 100% 1.374
info.magnolia.config 16 0 0 0 100% 0.433
info.magnolia.config.maputil 8 0 0 0 100% 0.016
info.magnolia.config.registry.decoration 4 0 0 0 100% 0.012

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% 2.779

info.magnolia.config.converters

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewToYamlConverterImplTest 7 0 0 0 100% 0.816
RawDefinitionViewToMapConverterTest 3 0 0 0 100% 0.008

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 38 0 0 1 97.368% 0.473

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 13 0 0 0 100% 0.184
DefinitionProviderBuilderTest 2 0 0 0 100% 0.006
DefinitionQueryImplTest 2 0 0 0 100% 0.002
RegistryFacadeImplTest 4 0 0 0 100% 0.018
RegistryMapTest 6 0 0 0 100% 0.004
RegistryTypeNameUtilTest 2 0 0 0 100% 0.007

info.magnolia.config.source

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

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
MetadataProcessorTest 1 0 0 0 100% 0.004
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.02
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.004
YamlConfigurationSourceBuilderTest 2 0 0 0 100% 0.019
YamlConfigurationSourceTest 9 0 0 0 100% 0.209
YamlDefinitionProviderTest 17 0 0 0 100% 4.481
YamlReaderTest 17 0 0 0 100% 0.055

info.magnolia.config.source.raw

Class Tests Errors Failures Skipped Success Rate Time
DefinitionRawViewMapWrapperTest 6 0 0 0 100% 0.071

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.042
YamlDefinitionDecoratorTest 12 0 0 0 100% 1.332

info.magnolia.config

Class Tests Errors Failures Skipped Success Rate Time
MutableWrapperTest 16 0 0 0 100% 0.433

info.magnolia.config.maputil

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

info.magnolia.config.registry.decoration

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 2.701
checksForRights 0.034
streamClosedCorrectlyEvenThoughExceptionOccurs 0.044

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.122
definitionProviderViewNullCheck 0.017
convertsSimpleProperty 0.011
convertsNestedClasses 0.026
nestedCollectionsHandledCorrectly 0.015
sameDefinitionProducedAfterJcrToYamlConversion 0.615
convertsCollection 0.01

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.003
handlesSubBeans 0.004
handlesCollectionProperties 0.001

Map2BeanTransformerTest

toBeanResolvesSimpleMaps 0.011
toBeanSupportsNullProperties 0.01
toBeanInstantiatesTargetTypeDefinedByTheClassProperty 0.007
toBeanResolvesEmptyLists 0.003
emptyNameIsNotForciblySetByMap2Bean 0.008
toBeanResolvesEnums 0.004
toBeanResolvesBeanListsFromMaps 0.027
toBeanResolvesClassPropertyType 0.003
toBeanSupportsNullClassProperties 0.004
toBeanResolvesBeanLists 0.014
beanSetterInvocationProblemIsTracked 0.013
toBeanResolvesSimpleLists 0.006
toBeanDoesntInvokeGetters 0.157
toBeanSupportsNonTypedMaps 0.009
toBeanSupportsNonTypedLists 0.007
yieldsCorrectCollectionTypes 0.007
toBeanSupportsNullOrEmptyMap 0.006
typeMismatchShowsWarnings 0.006
initIsCalledAfterBeanIsPopulated 0.004
beanTypeResolutionProblemIsTracked 0
skipped
invalidClassPropertyValueIsTrackedAsProblem 0.004
toBeanInstantiatesTargetTypeDefinedByTheClassPropertyAndResolvesSubTypeMapping 0.013
toBeanResolvesIterablesOfPrimitives 0.003
toBeanResolvesNamePropertyInBeanMaps 0.005
beanInitialisationProblemIsTracked 0.004
toBeanResolvesBeanMaps 0.008
transformationOfNullInputIsTrackedAsProblem 0.002
toBeanPreservesOrderingOfBeanMaps 0.009
nullPropertyValuesDoNotShowAnyWarning 0.004
toBeanResolvesNameProperty 0.004
toBeanResolvesBasicPropertyTypes 0.006
toBeanCanHandleMapsWithNonStringKeys 0.006
initIsCalledAfterBeanIsMapped 0.041
simpleValueConversionProblemIsTracked 0.005
toBeanResolvesListsAndIgnoresElementsWithIncompatibleType 0.024
toBeanResolvesSubBeans 0.006
unknownPropertiesAreTracked 0.015
toBeanResolvesNamePropertyInBeanListsFromMaps 0.008

ConfigurationMapOverlayTest

createsMissingMapLayers 0.004
overlaysMapOfMapsAtPath 0.004
overlaysMapOfMapsAtRoot 0.001

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.005
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0.001

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.249
modifyListPropertyElement 0.058
canWrapBeanWithCycles 0.04
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0.003
canWrapProxiedObject 0.016
modificationsArePickedUpByNonGetterSetterMethods 0.029
modifySimpleProperty 0.011
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.001
equalsWithComplexFieldsModified 0.001
enumsAreNotWrapped 0
toStringInvocation 0.023
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0.001

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.023
singleQuery 0.009
singleQueryByModuleAndPartialName 0.003
singleQueryByModuleAndName 0.002
unregisterDecoratedDefinition 0.026
singleQueryByPartialName 0.003
singleQueryByName 0.005
addDecoratorTargetingNonExistingDefinition 0.019
queryByModuleName 0.005
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.073
singleQueryFailsIfMultipleMatches 0.004
validateAlsoDecoratedDefinition 0.008
singleQueryFailsIfNoMatch 0.004

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0.001
cachedDecorationResult 0.002
invalidatesCacheOnDefinitionProviderModification 0.003

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.006

DefinitionProviderBuilderTest

buildFromTransformationResultCompatibleDefinitionType 0.001
buildFromTransformationResultIncompatibleDefinitionType 0.005

DefinitionQueryImplTest

queryByName 0.001
queryByLocation 0.001

RegistryFacadeImplTest

singleQuery 0.011
byModuleAggregatesFromDifferentRegistries 0.002
providersByType 0.002
providersByConfigurationSourceType 0.003

RegistryMapTest

removeAndPutAll 0.002
canReRegisterDefinitionWithTheSameMetadata 0.001
canReRegisterDefinitionStub 0
idAlreadyRegistered 0.001
putAndGet 0
remove 0

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.006
providesHumanReadablePluralRegistryName 0.001

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.004
nameOfCorrectlyHandlesCommonCapitalizationCases 0.002

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.032
testReloadsOnChange 1.058
testRawViewGeneration 0.033
testRegistersOnStart 0.032

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.034
mapOfSimpleTypes 0.007
simpleValues 0.011
mapOfComplexTypes 0.004
collectionOfComplexTypes 0.007
mapOfSimpleTypesWithNonStringKeys 0.008

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.014
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.004
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.024

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.35
decoratesRoot 0.111
decoratesAndOverridesListAndMapKeepOrder 0.104
decoratesNamedLists 0.056
decoratesTypeInformation 0.074
decorationProblemsAreAggregated 0.102
decoratesMapWithDigitKeys 0.123
emptyDecoratorIsLoggedAsProblem 0.065
cannotDecorateMapProblemShouldHaveSevereLevel 0.147
decoratesMapMember 0.1
decoratesMapWithArbitraryValueType 0.05
removingDecoratorOfDeletedResourceDoesNotThrowException 0.05

MetadataProcessorTest

emptyMapEntryValueDoesNotThrowNPE 0.004

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.004

YamlConfigurationSourceBuilderTest

withCustomConstruct 0.018
withCustomMultiConstruct 0.001

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.006
registerProviderEvenIfFileCantBeLoaded 0.029
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.032
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.016
detectsYamlDefinitionDecoratorUponStart 0.039
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.033
registerProviderWithNullResource 0.005
registersWithInvalidYaml 0.029
transformationResultProblemsAreAggregatedByDefinitionProvider 0.02

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.154
decorationWithOverride 0.331
complexInheritanceWithOverriding 0.24
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.071
reactsOnIncludedFileChange 1.029
doesNotFailWhenBoundToEmptyFile 1.028
deprecateYAMLDefinition 0.092
deprecateYamlDefinitionWithOnlySinceValue 0.039
overrideListAndMapAndKeepOrder 0.125
definitionInheritanceWithNameAsId 0.07
includeWithOverriding 0.089
deprecateYamlDefinitionWhichInheritsOtherDefinition 0.044
deprecateYamlDefinitionContainsDescriptionWithSpaces 0.032
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.018
deprecationInformationRemovedFromMetadata 0.028
simpleOverride 0.046
simpleInheritance 0.045

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped