Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
83 0 0 1 98.795% 5.973

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.434
info.magnolia.rest.setup 2 0 0 0 100% 0.937
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 3.71
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.687
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.205

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

info.magnolia.rest.setup

Class Tests Errors Failures Skipped Success Rate Time
RestServicesModuleVersionHandlerTest 2 0 0 0 100% 0.937

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

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

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 1.934
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.356
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.275
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.241
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.217
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.265
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.202
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.22

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.235
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.199

NodeEndpointTest

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

RepositoryMarshallerTest

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

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.375
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.041

PropertyEndpointTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 0.436
basicInstallAndCheckThatMethodsWereAdded 0.501

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