Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.289
info.magnolia.rest.setup 3 0 0 0 100% 2.267
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 1.317
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.526
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.178

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.172
RepositoryMarshallerTest 17 0 0 0 100% 0.007
RepositoryNodeTest 2 0 0 0 100% 0.347

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

NodeEndpointTest

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

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.149
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.14

CommandEndpointTest

testExecuteCommand 0.217
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.177
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.164
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.16
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.15
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.168
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.14
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.14

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.036
testUpdateProperty 0.01
testCreateProperty 0.009
testCreateMultiValueProperty 0.008
testCreateReturnsNotFoundWhenNodeDoesntExist 0.007
testUpdatePropertyOnRootNode 0.007
testUpdateMultiValuePropertyWithSingleProperty 0.007
testDeleteReturnsNotFoundForNonExistingProperty 0.008
testCreateReturnsBadRequestIfNoValuesGiven 0.006
testDeleteProperty 0.008
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.006
testGetReturnsNotFoundForNonExistingProperty 0.006
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.007
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.005
testCreatePropertyOnRootNode 0.006
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
testMarshallNodeWithMultiValuedProperty 0.001
testMarshallNodeExcludingMetadata 0
testGetValueByTypeForBinary 0.001
testGetStringByValueDefault 0
testMarshallNodeWithExcludeNodeTypesSpecified 0
testMarshallNodeWithDepthSpecified 0
testGetValueByTypeForString 0.001
testMarshallNode 0
testGetValueByTypeForOtherTypes 0
testUnmarshallProperties 0
testUnmarshallPropertiesCanStoreMultiValueProperty 0
testUnmarshallPropertiesCanStoreMultiValuePropertyWithJustOneValue 0
testMarshallNodeIncludingMetadata 0

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 1.446
basicInstallAndCheckThatMethodsWereAdded 0.46
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.339

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.302
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.031

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