Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.514
info.magnolia.rest.setup 3 0 0 0 100% 1.558
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 4.049
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.794
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.212

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.308
RepositoryMarshallerTest 17 0 0 0 100% 0.012
RepositoryNodeTest 2 0 0 0 100% 0.474

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 1.918
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.412
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.344
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.3
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.252
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.316
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.232
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.275

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.261
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.253

NodeEndpointTest

testUpdateAllowsPassingIdentifierInRequestBodyIfCorrect 0.03
testCreateNodeReturnsBadRequestWhenChildrenPresentInPostBody 0.012
testCreateNodeReturnsNotFoundIfParentNodeDoesntExist 0.012
testGetNodeReturnsNotFoundIfNodeDoesntExist 0.01
testDeleteNodeReturnsNotFoundForNonExistingNode 0.012
testUpdateReturnsBadRequestIfNameDoesntMatch 0.013
testUpdateAllowsPassingPathInRequestBodyIfCorrect 0.011
testCreateNodeBelowRootNode 0.014
testGetNode 0.009
testCreateNodeReturnsBadRequestWhenNameMissing 0.01
testGetRootNodePassingEmptyStringAsPath 0.008
testUpdateAllowsPassingNameInRequestBodyIfCorrect 0.008
testCreateNodeReturnsBadRequestWhenTypeMissing 0.01
testUpdateReturnsBadRequestIfPathDoesntMatch 0.007
testCreateNode 0.008
testUpdateAddsProperties 0.007
testUpdateReturnsBadRequestIfChildrenPresentInRequest 0.009
testCreateNodeReturnsBadRequestWhenPathInPostBodyIsInconsistent 0.009
testCreateNodeAllowsPassingPathInPostBodyIfCorrect 0.011
testGetNodeWithDepthNonZeroReturnsListOfSubNodes 0.018
testDeleteNode 0.007
testGetRootNode 0.008
testUpdateAllowsPassingNodeTypeInPostBodyIfCorrect 0.009
testGetNodeWithDepthZeroReturnsNoEmptyListOfSubNodes 0.01
testCreateNodeReturnsBadRequestIfNodeWithSameNameAlreadyExists 0.008
testUpdateReturnsNotFoundIfNodeDoesntExist 0.009
testSplitExcludeNodeTypesString 0.01
testUpdateReturnsBadRequestIfIdentifierDoesntMatch 0.01
testUpdateReturnsBadRequestIfNodeTypeDoesntMatch 0.009

RepositoryMarshallerTest

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

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.432
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.042

PropertyEndpointTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 0.586
basicInstallAndCheckThatMethodsWereAdded 0.618
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.354

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