Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
89 0 0 1 98.876% 5.367

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.334
info.magnolia.rest.setup 4 0 0 0 100% 2.943
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 1.452
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.426
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.196
info.magnolia.rest.service.status.v1 4 0 0 0 100% 0.016

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

info.magnolia.rest.setup

Class Tests Errors Failures Skipped Success Rate Time
RestServicesModuleVersionHandlerTest 4 0 0 0 100% 2.943

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.218
RepositoryMarshallerTest 17 0 0 0 100% 0.008
RepositoryNodeTest 2 0 0 0 100% 0.2

info.magnolia.rest.service.property.v1

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

info.magnolia.rest.service.status.v1

Class Tests Errors Failures Skipped Success Rate Time
StatusEndpointTest 4 0 0 0 100% 0.016

Test Cases

[Summary] [Package List] [Test Cases]

NodeEndpointTest

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

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.185
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.149

StatusEndpointTest

returnsAContentTypeWhenSuccessful 0.003
returns503IfMgnlContextSetButThereAreInstallTasks 0.013
returns503WhenMgnlContextNotSet 0
returns200WhenModuleManagerIsReady 0

CommandEndpointTest

testExecuteCommand 0.221
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.187
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.165
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.159
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.169
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.186
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.207
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.156

PropertyEndpointTest

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

RepositoryMarshallerTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 1.742
basicInstallAndCheckThatMethodsWereAdded 0.511
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.364
updateTo2_1_5AllowsAnonAccessToStatusEndpoint 0.283

RepositoryNodeTest

makeSureSerializationOfRepositoryNodeAndPropertyIsCorrect 0.17
makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.03

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