Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.449
info.magnolia.rest.setup 3 0 0 0 100% 1.461
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 3.771
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.776
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.216

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.347
RepositoryMarshallerTest 17 0 0 0 100% 0.014
RepositoryNodeTest 2 0 0 0 100% 0.415

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 1.868
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.371
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.277
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.253
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.23
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.289
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.198
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.285

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.236
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.213

NodeEndpointTest

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

RepositoryMarshallerTest

testUnmarshallPropertiesFailsWhenMultipleValuesOnNonMultiValueProperty 0.002
testGetStringByValueBinary 0.007
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.001
testUnmarshallProperties 0
testUnmarshallPropertiesCanStoreMultiValueProperty 0
testUnmarshallPropertiesCanStoreMultiValuePropertyWithJustOneValue 0
testMarshallNodeIncludingMetadata 0

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.375
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.04

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.01
testUpdateProperty 0.009
testCreateProperty 0.008
testCreateMultiValueProperty 0.016
testCreateReturnsNotFoundWhenNodeDoesntExist 0.012
testUpdatePropertyOnRootNode 0.011
testUpdateMultiValuePropertyWithSingleProperty 0.012
testDeleteReturnsNotFoundForNonExistingProperty 0.008
testCreateReturnsBadRequestIfNoValuesGiven 0.01
testDeleteProperty 0.008
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.01
testGetReturnsNotFoundForNonExistingProperty 0.009
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.01
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.009
testCreatePropertyOnRootNode 0.008
testUpdateReturnsBadRequestIfNoValuesGiven 0.01
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.011
testUpdateSingleValuePropertyWithMultiValue 0.009
testCreateReturnsBadRequestWhenTypeIsUnknown 0.01
testGetReturnsPropertyValue 0.009
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.008
testGetMultiValuedProperty 0.009

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 0.56
basicInstallAndCheckThatMethodsWereAdded 0.544
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.357

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