Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.691
info.magnolia.rest.setup 3 0 0 0 100% 2.295
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 7.113
info.magnolia.rest.service.node.v1 48 0 0 0 100% 1.416
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.286

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

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.513
RepositoryMarshallerTest 17 0 0 0 100% 0.019
RepositoryNodeTest 2 0 0 0 100% 0.884

info.magnolia.rest.service.property.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

CommandEndpointTest

testExecuteCommand 3.87
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.68
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.491
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.498
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.399
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.413
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.407
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.355

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.368
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.323

NodeEndpointTest

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

RepositoryMarshallerTest

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

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.807
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.077

PropertyEndpointTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 0.791
basicInstallAndCheckThatMethodsWereAdded 0.864
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.64

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