Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.398
info.magnolia.rest.setup 3 0 0 0 100% 1.319
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 3.745
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.763
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.164

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.312
RepositoryMarshallerTest 17 0 0 0 100% 0.009
RepositoryNodeTest 2 0 0 0 100% 0.442

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 1.879
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.379
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.276
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.262
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.25
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.266
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.192
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.241

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.199
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.199

NodeEndpointTest

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

RepositoryMarshallerTest

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

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.405
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.037

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.009
testUpdateProperty 0.007
testCreateProperty 0.006
testCreateMultiValueProperty 0.007
testCreateReturnsNotFoundWhenNodeDoesntExist 0.019
testUpdatePropertyOnRootNode 0.007
testUpdateMultiValuePropertyWithSingleProperty 0.009
testDeleteReturnsNotFoundForNonExistingProperty 0.007
testCreateReturnsBadRequestIfNoValuesGiven 0.007
testDeleteProperty 0.008
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.006
testGetReturnsNotFoundForNonExistingProperty 0.006
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.006
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.006
testCreatePropertyOnRootNode 0.006
testUpdateReturnsBadRequestIfNoValuesGiven 0.007
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.008
testUpdateSingleValuePropertyWithMultiValue 0.007
testCreateReturnsBadRequestWhenTypeIsUnknown 0.006
testGetReturnsPropertyValue 0.007
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.007
testGetMultiValuedProperty 0.006

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 0.464
basicInstallAndCheckThatMethodsWereAdded 0.526
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.329

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