Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.878
info.magnolia.rest.setup 2 0 0 0 100% 1.576
info.magnolia.rest.service.command.v1 9 0 0 0 100% 6.726
info.magnolia.rest.service.node.v1 46 0 0 0 100% 0.68
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.49

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.665
RepositoryMarshallerTest 17 0 0 0 100% 0.015

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 2.442
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.61
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.569
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.543
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.57
testCommandEndpointRegistration 0.558
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.466
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.5
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.468

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.475
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.403

NodeEndpointTest

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

RepositoryMarshallerTest

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

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.029
testUpdateProperty 0.029
testCreateProperty 0.024
testCreateMultiValueProperty 0.025
testCreateReturnsNotFoundWhenNodeDoesntExist 0.021
testUpdatePropertyOnRootNode 0.025
testUpdateMultiValuePropertyWithSingleProperty 0.028
testDeleteReturnsNotFoundForNonExistingProperty 0.025
testCreateReturnsBadRequestIfNoValuesGiven 0.021
testDeleteProperty 0.022
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.023
testGetReturnsNotFoundForNonExistingProperty 0.022
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.019
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.02
testCreatePropertyOnRootNode 0.021
testUpdateReturnsBadRequestIfNoValuesGiven 0.021
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.024
testUpdateSingleValuePropertyWithMultiValue 0.023
testCreateReturnsBadRequestWhenTypeIsUnknown 0.015
testGetReturnsPropertyValue 0.015
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.018
testGetMultiValuedProperty 0.02

RestServicesModuleVersionHandlerTest

testBasicInstallAndCheckThatMethodsWereAdded 0.989
testUpdateTo1_1CommandEndpointIsUpdatedToV2 0.587