Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.342
info.magnolia.rest.setup 3 0 0 0 100% 1.091
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 3.005
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.525
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.113

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

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

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 1.546
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.29
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.229
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.223
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.19
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.19
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.184
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.153

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.151
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.191

NodeEndpointTest

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

RepositoryMarshallerTest

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

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.285
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.032

PropertyEndpointTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 0.413
basicInstallAndCheckThatMethodsWereAdded 0.428
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.25

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