Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
38 0 0 4 89.474% 10.998

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.setup 5 0 0 0 100% 10.013
info.magnolia.rest 18 0 0 0 100% 0.915
info.magnolia.rest.registry 15 0 0 4 73.333% 0.07

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.rest.setup

Class Tests Errors Failures Skipped Success Rate Time
RemoveRoleFromUserTaskTest 1 0 0 0 100% 3.227
RestIntegrationModuleVersionHandlerTest 3 0 0 0 100% 6.421
UpdateRestEditorRoleTaskTest 1 0 0 0 100% 0.365

info.magnolia.rest

Class Tests Errors Failures Skipped Success Rate Time
RepositoryExceptionMapperTest 4 0 0 0 100% 0.084
RestDispatcherServletTest 2 0 0 0 100% 0.323
RestErrorTest 4 0 0 0 100% 0.449
RestExceptionMapperTest 6 0 0 0 100% 0.03
RuntimeRepositoryExceptionMapperTest 2 0 0 0 100% 0.029

info.magnolia.rest.registry

Class Tests Errors Failures Skipped Success Rate Time
ConfiguredEndpointDefinitionManagerTest 4 0 0 4 0% 0
EndpointDefinitionRegistryTest 11 0 0 0 100% 0.07

Test Cases

[Summary] [Package List] [Test Cases]

ConfiguredEndpointDefinitionManagerTest

testGetEndpointDefinition 0
ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.
testSendsRegisteredEventForDisabledEndpoint 0
ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.
testIgnoresIncompleteEndpointDefinition 0
ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.
testSendsRegisteredEvent 0
ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.

EndpointDefinitionRegistryTest

register 0.001
decoratorsTriggerRegistryEvents 0.013
unregister 0.014
getProvider 0.004
getNonExistingProvider 0.004
registerAndConflictedEndpointShouldRaiseMajorProblem 0.013
unregisterAndRegisterWhenEmpty 0.008
getExistingWithDeprecatedApi 0.003
getInvalidProvider 0.003
getNonExistingWithDeprecatedApi 0.003
getAllDefinitions 0.004

RepositoryExceptionMapperTest

accessDeniedException 0.058
invalidQueryException 0.026
unknownRepositoryException 0
pathNotFoundException 0

RestDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.303
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.02

RestErrorTest

readJsonIntoObject 0.408
writeObjectIntoJson 0.018
unmarshallXmlIntoObject 0.016
marshallObjectIntoXml 0.007

RestExceptionMapperTest

testThatRestExceptionMapperDoesNotProvideAStackTrace 0.024
notFoundWhenNoResourceMethodCalled 0.002
testMapsRepositoryExceptionToInternalServerError 0
methodNotAllowedException 0.002
notFoundException 0.001
trimJaxRsInformation 0.001

RuntimeRepositoryExceptionMapperTest

runtimeRepositoryExceptionDoesNotHaveCause 0.028
runtimeRepositoryExceptionHasCause 0.001

RemoveRoleFromUserTaskTest

removeRoleFromUser 3.227

RestIntegrationModuleVersionHandlerTest

updateFrom12UpdatesRestEditorRole 2.551
basicInstallSuperuserHasRoleRest 2.205
updateFrom123ChangeRestEditorRoleToRestAdminRole 1.665

UpdateRestEditorRoleTaskTest

updateRestRole 0.365

Failure Details

[Summary] [Package List] [Test Cases]


testGetEndpointDefinition
skipped: ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.
testSendsRegisteredEventForDisabledEndpoint
skipped: ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.
testIgnoresIncompleteEndpointDefinition
skipped: ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.
testSendsRegisteredEvent
skipped: ConfiguredEndpointDefinitionManagerTest is deprecated and should not be used anymore.