Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
84 0 0 1 98.81% 5.462

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.rest.service.command.v2 2 0 0 0 100% 0.327
info.magnolia.rest.setup 3 0 0 0 100% 2.797
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 1.47
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.64
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.228

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.rest.service.command.v2

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

info.magnolia.rest.setup

Class Tests Errors Failures Skipped Success Rate Time
RestServicesModuleVersionHandlerTest 3 0 0 0 100% 2.797

info.magnolia.rest.service.command.v1

Class Tests Errors Failures Skipped Success Rate Time
CommandEndpointTest 9 0 0 1 88.889% 1.47

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.178
RepositoryMarshallerTest 17 0 0 0 100% 0.013
RepositoryNodeTest 2 0 0 0 100% 0.449

info.magnolia.rest.service.property.v1

Class Tests Errors Failures Skipped Success Rate Time
PropertyEndpointTest 22 0 0 0 100% 0.228

Test Cases

[Summary] [Package List] [Test Cases]

NodeEndpointTest

testUpdateAllowsPassingIdentifierInRequestBodyIfCorrect 0.007
testCreateNodeReturnsBadRequestWhenChildrenPresentInPostBody 0.006
testCreateNodeReturnsNotFoundIfParentNodeDoesntExist 0.007
testGetNodeReturnsNotFoundIfNodeDoesntExist 0.006
testDeleteNodeReturnsNotFoundForNonExistingNode 0.005
testUpdateReturnsBadRequestIfNameDoesntMatch 0.006
testUpdateAllowsPassingPathInRequestBodyIfCorrect 0.007
testCreateNodeBelowRootNode 0.006
testGetNode 0.006
testCreateNodeReturnsBadRequestWhenNameMissing 0.006
testGetRootNodePassingEmptyStringAsPath 0.006
testUpdateAllowsPassingNameInRequestBodyIfCorrect 0.007
testCreateNodeReturnsBadRequestWhenTypeMissing 0.006
testUpdateReturnsBadRequestIfPathDoesntMatch 0.006
testCreateNode 0.006
testUpdateAddsProperties 0.006
testUpdateReturnsBadRequestIfChildrenPresentInRequest 0.005
testCreateNodeReturnsBadRequestWhenPathInPostBodyIsInconsistent 0.006
testCreateNodeAllowsPassingPathInPostBodyIfCorrect 0.006
testGetNodeWithDepthNonZeroReturnsListOfSubNodes 0.006
testDeleteNode 0.005
testGetRootNode 0.007
testUpdateAllowsPassingNodeTypeInPostBodyIfCorrect 0.006
testGetNodeWithDepthZeroReturnsNoEmptyListOfSubNodes 0.006
testCreateNodeReturnsBadRequestIfNodeWithSameNameAlreadyExists 0.007
testUpdateReturnsNotFoundIfNodeDoesntExist 0.006
testSplitExcludeNodeTypesString 0.007
testUpdateReturnsBadRequestIfIdentifierDoesntMatch 0.006
testUpdateReturnsBadRequestIfNodeTypeDoesntMatch 0.006

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.149
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.178

CommandEndpointTest

testExecuteCommand 0.241
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.212
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.171
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.181
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.166
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.183
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.167
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.149

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.044
testUpdateProperty 0.014
testCreateProperty 0.011
testCreateMultiValueProperty 0.013
testCreateReturnsNotFoundWhenNodeDoesntExist 0.009
testUpdatePropertyOnRootNode 0.008
testUpdateMultiValuePropertyWithSingleProperty 0.009
testDeleteReturnsNotFoundForNonExistingProperty 0.011
testCreateReturnsBadRequestIfNoValuesGiven 0.01
testDeleteProperty 0.01
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.008
testGetReturnsNotFoundForNonExistingProperty 0.008
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.008
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.007
testCreatePropertyOnRootNode 0.008
testUpdateReturnsBadRequestIfNoValuesGiven 0.009
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.006
testUpdateSingleValuePropertyWithMultiValue 0.006
testCreateReturnsBadRequestWhenTypeIsUnknown 0.007
testGetReturnsPropertyValue 0.008
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.007
testGetMultiValuedProperty 0.007

RepositoryMarshallerTest

testUnmarshallPropertiesFailsWhenMultipleValuesOnNonMultiValueProperty 0
testGetStringByValueBinary 0.007
testMarshallNodeWithNullExcludeString 0
testUnmarshallPropertiesFailsWhenValuesMissing 0
testMarshallNodeWithMultiValuedProperty 0
testMarshallNodeExcludingMetadata 0
testGetValueByTypeForBinary 0.001
testGetStringByValueDefault 0
testMarshallNodeWithExcludeNodeTypesSpecified 0.001
testMarshallNodeWithDepthSpecified 0
testGetValueByTypeForString 0
testMarshallNode 0.001
testGetValueByTypeForOtherTypes 0.001
testUnmarshallProperties 0
testUnmarshallPropertiesCanStoreMultiValueProperty 0
testUnmarshallPropertiesCanStoreMultiValuePropertyWithJustOneValue 0
testMarshallNodeIncludingMetadata 0.002

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 1.905
basicInstallAndCheckThatMethodsWereAdded 0.529
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.363

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.41
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.039

Failure Details

[Summary] [Package List] [Test Cases]


testCommandEndpointRegistration
skipped: Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific