Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
89 0 0 1 98.876% 7.772

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.542
info.magnolia.rest.setup 4 0 0 0 100% 3.983
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 2.14
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.66
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.394
info.magnolia.rest.service.status.v1 4 0 0 0 100% 0.053

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

info.magnolia.rest.setup

Class Tests Errors Failures Skipped Success Rate Time
RestServicesModuleVersionHandlerTest 4 0 0 0 100% 3.983

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.283
RepositoryMarshallerTest 17 0 0 0 100% 0.013
RepositoryNodeTest 2 0 0 0 100% 0.364

info.magnolia.rest.service.property.v1

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

info.magnolia.rest.service.status.v1

Class Tests Errors Failures Skipped Success Rate Time
StatusEndpointTest 4 0 0 0 100% 0.053

Test Cases

[Summary] [Package List] [Test Cases]

NodeEndpointTest

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

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.246
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.294

StatusEndpointTest

returnsAContentTypeWhenSuccessful 0.016
returns503IfMgnlContextSetButThereAreInstallTasks 0.032
returns503WhenMgnlContextNotSet 0
returns200WhenModuleManagerIsReady 0

CommandEndpointTest

testExecuteCommand 0.469
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.313
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.211
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.276
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.209
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.176
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.233
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.244

PropertyEndpointTest

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

RepositoryMarshallerTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 2.34
basicInstallAndCheckThatMethodsWereAdded 0.621
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.475
updateTo2_1_5AllowsAnonAccessToStatusEndpoint 0.486

RepositoryNodeTest

makeSureSerializationOfRepositoryNodeAndPropertyIsCorrect 0.318
makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.045

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