Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
81 0 0 0 100% 11.17

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.property.v1 22 0 0 0 100% 0.66
info.magnolia.rest.service.command.v2 2 0 0 0 100% 0.69
info.magnolia.rest.service.command.v1 9 0 0 0 100% 3.918
info.magnolia.rest.setup 2 0 0 0 100% 5.26
info.magnolia.rest.service.node.v1 46 0 0 0 100% 0.642

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.rest.service.property.v1

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

info.magnolia.rest.service.command.v2

Class Tests Errors Failures Skipped Success Rate Time
CommandEndpointTest 2 0 0 0 100% 0.69

info.magnolia.rest.service.command.v1

Class Tests Errors Failures Skipped Success Rate Time
CommandEndpointTest 9 0 0 0 100% 3.918

info.magnolia.rest.setup

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
RepositoryMarshallerTest 17 0 0 0 100% 0.008
NodeEndpointTest 29 0 0 0 100% 0.634

Test Cases

[Summary] [Package List] [Test Cases]

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.056
testUpdateProperty 0.032
testCreateProperty 0.034
testCreateMultiValueProperty 0.028
testCreateReturnsNotFoundWhenNodeDoesntExist 0.032
testUpdatePropertyOnRootNode 0.028
testUpdateMultiValuePropertyWithSingleProperty 0.033
testDeleteReturnsNotFoundForNonExistingProperty 0.029
testCreateReturnsBadRequestIfNoValuesGiven 0.031
testDeleteProperty 0.028
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.028
testGetReturnsNotFoundForNonExistingProperty 0.028
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.029
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.031
testCreatePropertyOnRootNode 0.026
testUpdateReturnsBadRequestIfNoValuesGiven 0.029
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.025
testUpdateSingleValuePropertyWithMultiValue 0.023
testCreateReturnsBadRequestWhenTypeIsUnknown 0.029
testGetReturnsPropertyValue 0.031
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.027
testGetMultiValuedProperty 0.023

RepositoryMarshallerTest

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

RestServicesModuleVersionHandlerTest

testBasicInstallAndCheckThatMethodsWereAdded 3.734
testUpdateTo1_1CommandEndpointIsUpdatedToV2 1.526

NodeEndpointTest

testUpdateAllowsPassingIdentifierInRequestBodyIfCorrect 0.02
testCreateNodeReturnsBadRequestWhenChildrenPresentInPostBody 0.019
testCreateNodeReturnsNotFoundIfParentNodeDoesntExist 0.018
testGetNodeReturnsNotFoundIfNodeDoesntExist 0.019
testDeleteNodeReturnsNotFoundForNonExistingNode 0.019
testUpdateReturnsBadRequestIfNameDoesntMatch 0.017
testUpdateAllowsPassingPathInRequestBodyIfCorrect 0.02
testCreateNodeBelowRootNode 0.023
testGetNode 0.021
testCreateNodeReturnsBadRequestWhenNameMissing 0.02
testGetRootNodePassingEmptyStringAsPath 0.017
testUpdateAllowsPassingNameInRequestBodyIfCorrect 0.018
testCreateNodeReturnsBadRequestWhenTypeMissing 0.021
testUpdateReturnsBadRequestIfPathDoesntMatch 0.018
testCreateNode 0.025
testUpdateAddsProperties 0.033
testUpdateReturnsBadRequestIfChildrenPresentInRequest 0.025
testCreateNodeReturnsBadRequestWhenPathInPostBodyIsInconsistent 0.03
testCreateNodeAllowsPassingPathInPostBodyIfCorrect 0.024
testGetNodeWithDepthNonZeroReturnsListOfSubNodes 0.027
testDeleteNode 0.018
testGetRootNode 0.021
testUpdateAllowsPassingNodeTypeInPostBodyIfCorrect 0.024
testGetNodeWithDepthZeroReturnsNoEmptyListOfSubNodes 0.027
testCreateNodeReturnsBadRequestIfNodeWithSameNameAlreadyExists 0.026
testUpdateReturnsNotFoundIfNodeDoesntExist 0.027
testSplitExcludeNodeTypesString 0.022
testUpdateReturnsBadRequestIfIdentifierDoesntMatch 0.019
testUpdateReturnsBadRequestIfNodeTypeDoesntMatch 0.016

CommandEndpointTest

testExecuteCommand 0.842
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.454
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.465
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.41
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.359
testCommandEndpointRegistration 0.375
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.361
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.32
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.332

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.365
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.325