Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.308
info.magnolia.rest.service.command.v2 2 0 0 0 100% 0.459
info.magnolia.rest.service.command.v1 9 0 0 0 100% 5.033
info.magnolia.rest.setup 2 0 0 0 100% 0.739
info.magnolia.rest.service.node.v1 46 0 0 0 100% 0.525

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

info.magnolia.rest.service.command.v2

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.node.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 2.444
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.562
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.345
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.328
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.298
testCommandEndpointRegistration 0.265
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.273
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.289
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.229

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.223
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.236

NodeEndpointTest

testUpdateAllowsPassingIdentifierInRequestBodyIfCorrect 0.029
testCreateNodeReturnsBadRequestWhenChildrenPresentInPostBody 0.021
testCreateNodeReturnsNotFoundIfParentNodeDoesntExist 0.02
testGetNodeReturnsNotFoundIfNodeDoesntExist 0.02
testDeleteNodeReturnsNotFoundForNonExistingNode 0.023
testUpdateReturnsBadRequestIfNameDoesntMatch 0.019
testUpdateAllowsPassingPathInRequestBodyIfCorrect 0.019
testCreateNodeBelowRootNode 0.02
testGetNode 0.019
testCreateNodeReturnsBadRequestWhenNameMissing 0.018
testGetRootNodePassingEmptyStringAsPath 0.018
testUpdateAllowsPassingNameInRequestBodyIfCorrect 0.017
testCreateNodeReturnsBadRequestWhenTypeMissing 0.017
testUpdateReturnsBadRequestIfPathDoesntMatch 0.017
testCreateNode 0.018
testUpdateAddsProperties 0.018
testUpdateReturnsBadRequestIfChildrenPresentInRequest 0.017
testCreateNodeReturnsBadRequestWhenPathInPostBodyIsInconsistent 0.018
testCreateNodeAllowsPassingPathInPostBodyIfCorrect 0.017
testGetNodeWithDepthNonZeroReturnsListOfSubNodes 0.021
testDeleteNode 0.016
testGetRootNode 0.015
testUpdateAllowsPassingNodeTypeInPostBodyIfCorrect 0.016
testGetNodeWithDepthZeroReturnsNoEmptyListOfSubNodes 0.014
testCreateNodeReturnsBadRequestIfNodeWithSameNameAlreadyExists 0.015
testUpdateReturnsNotFoundIfNodeDoesntExist 0.014
testSplitExcludeNodeTypesString 0.015
testUpdateReturnsBadRequestIfIdentifierDoesntMatch 0.013
testUpdateReturnsBadRequestIfNodeTypeDoesntMatch 0.013

RepositoryMarshallerTest

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

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.014
testUpdateProperty 0.013
testCreateProperty 0.014
testCreateMultiValueProperty 0.013
testCreateReturnsNotFoundWhenNodeDoesntExist 0.014
testUpdatePropertyOnRootNode 0.017
testUpdateMultiValuePropertyWithSingleProperty 0.015
testDeleteReturnsNotFoundForNonExistingProperty 0.016
testCreateReturnsBadRequestIfNoValuesGiven 0.013
testDeleteProperty 0.014
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.014
testGetReturnsNotFoundForNonExistingProperty 0.016
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.016
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.014
testCreatePropertyOnRootNode 0.015
testUpdateReturnsBadRequestIfNoValuesGiven 0.015
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.012
testUpdateSingleValuePropertyWithMultiValue 0.014
testCreateReturnsBadRequestWhenTypeIsUnknown 0.013
testGetReturnsPropertyValue 0.012
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.011
testGetMultiValuedProperty 0.013

RestServicesModuleVersionHandlerTest

testBasicInstallAndCheckThatMethodsWereAdded 0.429
testUpdateTo1_1CommandEndpointIsUpdatedToV2 0.31