Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
192 0 0 1 99.479% 6.336

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.837
info.magnolia.config.converters 10 0 0 0 100% 0.308
info.magnolia.config.map2bean 37 0 0 1 97.297% 0.122
info.magnolia.config.registry 29 0 0 0 100% 0.098
info.magnolia.config.source 2 0 0 0 100% 0.002
info.magnolia.config.source.yaml 58 0 0 0 100% 3.424
info.magnolia.config.source.raw 6 0 0 0 100% 0.017
info.magnolia.config.source.jcr 4 0 0 0 100% 1.075
info.magnolia.config.source.yaml.decoration 15 0 0 0 100% 0.317
info.magnolia.config 16 0 0 0 100% 0.128
info.magnolia.config.maputil 8 0 0 0 100% 0.005
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.837

info.magnolia.config.converters

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

info.magnolia.config.map2bean

Class Tests Errors Failures Skipped Success Rate Time
Map2BeanTransformerTest 37 0 0 1 97.297% 0.122

info.magnolia.config.registry

Class Tests Errors Failures Skipped Success Rate Time
AbstractRegistryTest 13 0 0 0 100% 0.087
DefinitionProviderBuilderTest 2 0 0 0 100% 0.002
DefinitionQueryImplTest 2 0 0 0 100% 0.001
RegistryFacadeImplTest 4 0 0 0 100% 0.005
RegistryMapTest 6 0 0 0 100% 0.001
RegistryTypeNameUtilTest 2 0 0 0 100% 0.002

info.magnolia.config.source

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

info.magnolia.config.source.yaml

Class Tests Errors Failures Skipped Success Rate Time
MetadataProcessorTest 1 0 0 0 100% 0.001
RegexBasedPathToMetadataInferrerTest 11 0 0 0 100% 0.003
WhiteSpaceNormalisingReaderTest 1 0 0 0 100% 0.003
YamlConfigurationSourceBuilderTest 2 0 0 0 100% 0.003
YamlConfigurationSourceTest 9 0 0 0 100% 0.048
YamlDefinitionProviderTest 17 0 0 0 100% 3.353
YamlReaderTest 17 0 0 0 100% 0.013

info.magnolia.config.source.raw

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

info.magnolia.config.source.jcr

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

info.magnolia.config.source.yaml.decoration

Class Tests Errors Failures Skipped Success Rate Time
FilePathBasedYamlDefinitionDecoratorResolverTest 3 0 0 0 100% 0.011
YamlDefinitionDecoratorTest 12 0 0 0 100% 0.306

info.magnolia.config

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

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

info.magnolia.config.registry.decoration

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

Test Cases

[Summary] [Package List] [Test Cases]

ExportJcrNodeToYamlCommandTest

throwsExceptionIfPathIsNull 0.814
checksForRights 0.01
streamClosedCorrectlyEvenThoughExceptionOccurs 0.013

DefinitionRawViewToYamlConverterImplTest

subBeanWithNamePropertyPresentHandledCorrectly 0.039
definitionProviderViewNullCheck 0.006
convertsSimpleProperty 0.005
convertsNestedClasses 0.005
nestedCollectionsHandledCorrectly 0.005
sameDefinitionProducedAfterJcrToYamlConversion 0.24
convertsCollection 0.005

RawDefinitionViewToMapConverterTest

handlesPrimitiveCollections 0.001
handlesSubBeans 0.002
handlesCollectionProperties 0

Map2BeanTransformerTest

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

ConfigurationMapOverlayTest

createsMissingMapLayers 0.001
overlaysMapOfMapsAtPath 0.002
overlaysMapOfMapsAtRoot 0

ToMapTest

merelyTypeCastsMap 0
producesEmptyMapForNonMapOrCollectionArgument 0.001
producesMapWithSequentialStringKeysForListWithoutNameProperty 0.001
extractsNameKeysFromElementsOfListOfMaps 0
doesNotYieldNPEOnNullInput 0

MutableWrapperTest

avoidsInvokingWrappedObjectsClassConstructorForProxy 0.074
modifyListPropertyElement 0.018
canWrapBeanWithCycles 0.011
mutableWrapperPreservesRuntimeType 0
modifyMapPropertyEntry 0.001
stringsAreNotWrapped 0
canWrapProxiedObject 0.007
modificationsArePickedUpByNonGetterSetterMethods 0.007
modifySimpleProperty 0.001
primitivesAreNotWrapped 0
modifyPrimitiveListProperty 0
explicitlySetPropertyIsNotAffectedByWrappingMechanism 0.001
equalsWithComplexFieldsModified 0
enumsAreNotWrapped 0.001
toStringInvocation 0.007
equalsTakesSourceObjectAndModifiedPropertiesInAccount 0

AbstractRegistryTest

singleQueryFailsOnModuleAndNameMismatch 0.011
singleQuery 0.004
singleQueryByModuleAndPartialName 0.001
singleQueryByModuleAndName 0.002
unregisterDecoratedDefinition 0.014
singleQueryByPartialName 0.001
singleQueryByName 0.002
addDecoratorTargetingNonExistingDefinition 0.004
queryByModuleName 0.035
allowsDefinitionDecorationAndAppliesDecoratorsInOrderOfModuleDependency 0.008
singleQueryFailsIfMultipleMatches 0.001
validateAlsoDecoratedDefinition 0.003
singleQueryFailsIfNoMatch 0.001

CachingDefinitionDecoratorTest

invalidatesCacheOnDefinitionProviderChange 0
cachedDecorationResult 0.001
invalidatesCacheOnDefinitionProviderModification 0

DefinitionDecoratorsTest

definitionDecoratorComparisonIsLenientToNonRegisteredModules 0.002

DefinitionProviderBuilderTest

buildFromTransformationResultCompatibleDefinitionType 0
buildFromTransformationResultIncompatibleDefinitionType 0.002

DefinitionQueryImplTest

queryByName 0.001
queryByLocation 0

RegistryFacadeImplTest

singleQuery 0.002
byModuleAggregatesFromDifferentRegistries 0.001
providersByType 0.001
providersByConfigurationSourceType 0.001

RegistryMapTest

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

RegistryTypeNameUtilTest

providesHumanReadableRegistryName 0.002
providesHumanReadablePluralRegistryName 0

AbstractConfigurationSourceBuilderTest

nameOfCorrectlyPluralizes 0.001
nameOfCorrectlyHandlesCommonCapitalizationCases 0.001

JcrConfigurationSourceTest

sameNameSubNodesDoNotSpoilRawView 0.013
testReloadsOnChange 1.04
testRawViewGeneration 0.013
testRegistersOnStart 0.009

DefinitionRawViewMapWrapperTest

collectionOfNumbers 0.004
mapOfSimpleTypes 0.003
simpleValues 0.003
mapOfComplexTypes 0.002
collectionOfComplexTypes 0.002
mapOfSimpleTypesWithNonStringKeys 0.003

FilePathBasedYamlDefinitionDecoratorResolverTest

resolvesDecoratorWithCorrectMetadataWhenRegistryUsesModuleAndRelativePathAsReferenceId 0.007
resolvesDecoratorWithCorrectMetadataWhenRegistryUsesOnlyNameAsReferenceId 0.002
decoratedTemplateItemDoesNotEndUpInBlockRegistryDueToMismatchInTargetModule 0.002

YamlDefinitionDecoratorTest

supportsAdditionOfPreviouslyNotPresentSubDefinition 0.066
decoratesRoot 0.02
decoratesAndOverridesListAndMapKeepOrder 0.02
decoratesNamedLists 0.018
decoratesTypeInformation 0.025
decorationProblemsAreAggregated 0.022
decoratesMapWithDigitKeys 0.023
emptyDecoratorIsLoggedAsProblem 0.028
cannotDecorateMapProblemShouldHaveSevereLevel 0.029
decoratesMapMember 0.022
decoratesMapWithArbitraryValueType 0.018
removingDecoratorOfDeletedResourceDoesNotThrowException 0.015

MetadataProcessorTest

emptyMapEntryValueDoesNotThrowNPE 0.001

RegexBasedPathToMetadataInferrerTest

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

WhiteSpaceNormalisingReaderTest

cleansSpacesButKeepsTabsAndNewLines 0.003

YamlConfigurationSourceBuilderTest

withCustomConstruct 0.001
withCustomMultiConstruct 0.002

YamlConfigurationSourceTest

shouldNotRegisterIfPathDoesNotMatch 0.002
registerProviderEvenIfFileCantBeLoaded 0.006
nameComesFromDefAndIsAvailableOnMetadataAsWell 0.004
nameFromConfigurationSourceHasHigherPriorityThanNameFromMetadata 0.005
detectsYamlDefinitionDecoratorUponStart 0.01
definitionDecoratorsRemovedUponWholeDecorationFolderRemoval 0.011
registerProviderWithNullResource 0.001
registersWithInvalidYaml 0.006
transformationResultProblemsAreAggregatedByDefinitionProvider 0.003

YamlDefinitionProviderTest

inheritingMissingDefinitionYieldsInvalidDefinition 0.026
decorationWithOverride 0.036
complexInheritanceWithOverriding 0.06
gracefullyReEvaluatesDefinitionWhenDependencyIsRemoved 1.018
reactsOnIncludedFileChange 1.019
doesNotFailWhenBoundToEmptyFile 1.017
deprecateYAMLDefinition 0.019
deprecateYamlDefinitionWithOnlySinceValue 0.012
overrideListAndMapAndKeepOrder 0.027
definitionInheritanceWithNameAsId 0.016
includeWithOverriding 0.02
deprecateYamlDefinitionWhichInheritsOtherDefinition 0.014
deprecateYamlDefinitionContainsDescriptionWithSpaces 0.013
returnsLastResolvedResultWhenRootDefinitionResourceIsGone 0.01
deprecationInformationRemovedFromMetadata 0.01
simpleOverride 0.02
simpleInheritance 0.016

YamlReaderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


beanTypeResolutionProblemIsTracked
skipped: skipped