Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 4.627
info.magnolia.rest 24 0 0 0 100% 1.475
info.magnolia.rest.registry 17 0 0 4 76.471% 0.086

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
UpdateRestEditorRoleTaskTest 1 0 0 0 100% 0.248
RemoveRoleFromUserTaskTest 1 0 0 0 100% 1.703
RestIntegrationModuleVersionHandlerTest 3 0 0 0 100% 2.676

info.magnolia.rest

Class Tests Errors Failures Skipped Success Rate Time
RepositoryExceptionMapperTest 4 0 0 0 100% 0.016
RestJerseyDispatcherServletTest 4 0 0 0 100% 0.777
RuntimeRepositoryExceptionMapperTest 2 0 0 0 100% 0.005
RestExceptionMapperTest 6 0 0 0 100% 0.33
RestDispatcherServletTest 4 0 0 0 100% 0.118
RestErrorTest 4 0 0 0 100% 0.229

info.magnolia.rest.registry

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

Test Cases

[Summary] [Package List] [Test Cases]

RepositoryExceptionMapperTest

accessDeniedException 0.003
invalidQueryException 0.008
unknownRepositoryException 0.002
pathNotFoundException 0.002

RestJerseyDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.489
registerMultipleEndpointsWithYamlPath 0.144
registerMultipleEndpointsWithConfiguredPath 0.089
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.055

RuntimeRepositoryExceptionMapperTest

runtimeRepositoryExceptionDoesNotHaveCause 0.003
runtimeRepositoryExceptionHasCause 0.002

RestExceptionMapperTest

testThatRestExceptionMapperDoesNotProvideAStackTrace 0.11
notFoundWhenNoResourceMethodCalled 0.01
testMapsRepositoryExceptionToInternalServerError 0.003
methodNotAllowedException 0
notFoundException 0
trimJaxRsInformation 0.001

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.

UpdateRestEditorRoleTaskTest

updateRestRole 0.248

RemoveRoleFromUserTaskTest

removeRoleFromUser 1.703

RestDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.081
registerMultipleEndpointsWithYamlPath 0.015
registerMultipleEndpointsWithConfiguredPath 0.013
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.009

RestIntegrationModuleVersionHandlerTest

updateFrom12UpdatesRestEditorRole 0.932
basicInstallSuperuserHasRoleRest 0.927
updateFrom123ChangeRestEditorRoleToRestAdminRole 0.815

EndpointDefinitionRegistryTest

firedEventContainsDecoratedProvider 0.031
register 0.008
decoratorsTriggerRegistryEvents 0.003
unregister 0.007
getProvider 0.004
getNonExistingProvider 0.004
registerAndConflictedEndpointShouldRaiseMajorProblem 0.004
registeringSameNameEndpointJustTakesTheFirstEndpoint 0.005
unregisterAndRegisterWhenEmpty 0.004
getExistingWithDeprecatedApi 0.004
getInvalidProvider 0.004
getNonExistingWithDeprecatedApi 0.003
getAllDefinitions 0.003

RestErrorTest

readJsonIntoObject 0.21
writeObjectIntoJson 0.011
unmarshallXmlIntoObject 0.005
marshallObjectIntoXml 0.003

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.