Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
46 0 0 4 91.304% 8.401

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% 6.076
info.magnolia.rest 24 0 0 0 100% 1.875
info.magnolia.rest.registry 17 0 0 4 76.471% 0.45

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% 2.026
RestIntegrationModuleVersionHandlerTest 3 0 0 0 100% 3.84
UpdateRestEditorRoleTaskTest 1 0 0 0 100% 0.21

info.magnolia.rest

Class Tests Errors Failures Skipped Success Rate Time
RepositoryExceptionMapperTest 4 0 0 0 100% 0.056
RestDispatcherServletTest 4 0 0 0 100% 0.263
RestErrorTest 4 0 0 0 100% 0.283
RestExceptionMapperTest 6 0 0 0 100% 0.019
RestJerseyDispatcherServletTest 4 0 0 0 100% 1.248
RuntimeRepositoryExceptionMapperTest 2 0 0 0 100% 0.006

info.magnolia.rest.registry

Class Tests Errors Failures Skipped Success Rate Time
ConfiguredEndpointDefinitionManagerTest 4 0 0 4 0% 0
EndpointDefinitionRegistryTest 13 0 0 0 100% 0.45

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

firedEventContainsDecoratedProvider 0.365
register 0.005
decoratorsTriggerRegistryEvents 0.019
unregister 0.026
getProvider 0.005
getNonExistingProvider 0.002
registerAndConflictedEndpointShouldRaiseMajorProblem 0.007
registeringSameNameEndpointJustTakesTheFirstEndpoint 0.005
unregisterAndRegisterWhenEmpty 0.005
getExistingWithDeprecatedApi 0.003
getInvalidProvider 0.003
getNonExistingWithDeprecatedApi 0.002
getAllDefinitions 0.003

RepositoryExceptionMapperTest

accessDeniedException 0.033
invalidQueryException 0.022
unknownRepositoryException 0.001
pathNotFoundException 0

RestDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.187
registerMultipleEndpointsWithYamlPath 0.022
registerMultipleEndpointsWithConfiguredPath 0.038
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.016

RestErrorTest

readJsonIntoObject 0.255
writeObjectIntoJson 0.013
unmarshallXmlIntoObject 0.011
marshallObjectIntoXml 0.004

RestExceptionMapperTest

testThatRestExceptionMapperDoesNotProvideAStackTrace 0.015
notFoundWhenNoResourceMethodCalled 0.001
testMapsRepositoryExceptionToInternalServerError 0.001
methodNotAllowedException 0.001
notFoundException 0
trimJaxRsInformation 0.001

RestJerseyDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.696
registerMultipleEndpointsWithYamlPath 0.253
registerMultipleEndpointsWithConfiguredPath 0.178
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.121

RuntimeRepositoryExceptionMapperTest

runtimeRepositoryExceptionDoesNotHaveCause 0.004
runtimeRepositoryExceptionHasCause 0.002

RemoveRoleFromUserTaskTest

removeRoleFromUser 2.026

RestIntegrationModuleVersionHandlerTest

updateFrom12UpdatesRestEditorRole 1.466
basicInstallSuperuserHasRoleRest 1.273
updateFrom123ChangeRestEditorRoleToRestAdminRole 1.101

UpdateRestEditorRoleTaskTest

updateRestRole 0.21

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.