Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
52 0 0 4 92.308% 9.2

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.238
info.magnolia.rest 30 0 0 0 100% 2.721
info.magnolia.rest.registry 17 0 0 4 76.471% 0.241

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.386
RemoveRoleFromUserTaskTest 1 0 0 0 100% 2.482
RestIntegrationModuleVersionHandlerTest 3 0 0 0 100% 3.37

info.magnolia.rest

Class Tests Errors Failures Skipped Success Rate Time
RepositoryExceptionMapperTest 4 0 0 0 100% 0.051
RestJerseyDispatcherServletTest 7 0 0 0 100% 1.554
RuntimeRepositoryExceptionMapperTest 2 0 0 0 100% 0.009
RestExceptionMapperTest 6 0 0 0 100% 0.646
RestDispatcherServletTest 7 0 0 0 100% 0.2
RestErrorTest 4 0 0 0 100% 0.261

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

Test Cases

[Summary] [Package List] [Test Cases]

RepositoryExceptionMapperTest

accessDeniedException 0.037
invalidQueryException 0.004
unknownRepositoryException 0.005
pathNotFoundException 0.004

RestJerseyDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.515
registerMultipleEndpointsWithYamlPath 0.261
registerMultipleEndpointsWithConfiguredPath 0.227
dontFailWithNpeIfImplementationClassIsMissing 0.141
dontFailWithNpeIfProviderClassIsMissing 0.121
registerAdditionalProviders 0.171
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.118

RuntimeRepositoryExceptionMapperTest

runtimeRepositoryExceptionDoesNotHaveCause 0.005
runtimeRepositoryExceptionHasCause 0.004

RestExceptionMapperTest

testThatRestExceptionMapperDoesNotProvideAStackTrace 0.561
notFoundWhenNoResourceMethodCalled 0.009
testMapsRepositoryExceptionToInternalServerError 0.007
methodNotAllowedException 0
notFoundException 0
trimJaxRsInformation 0

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

RemoveRoleFromUserTaskTest

removeRoleFromUser 2.482

RestDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.122
registerMultipleEndpointsWithYamlPath 0.016
registerMultipleEndpointsWithConfiguredPath 0.013
dontFailWithNpeIfImplementationClassIsMissing 0.016
dontFailWithNpeIfProviderClassIsMissing 0.011
registerAdditionalProviders 0.01
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.01

RestIntegrationModuleVersionHandlerTest

updateFrom12UpdatesRestEditorRole 1.244
basicInstallSuperuserHasRoleRest 1.161
updateFrom123ChangeRestEditorRoleToRestAdminRole 0.965

EndpointDefinitionRegistryTest

firedEventContainsDecoratedProvider 0.006
register 0.044
decoratorsTriggerRegistryEvents 0.006
unregister 0.038
getProvider 0.006
getNonExistingProvider 0.006
registerAndConflictedEndpointShouldRaiseMajorProblem 0.037
registeringSameNameEndpointJustTakesTheFirstEndpoint 0.006
unregisterAndRegisterWhenEmpty 0.005
getExistingWithDeprecatedApi 0.038
getInvalidProvider 0.005
getNonExistingWithDeprecatedApi 0.006
getAllDefinitions 0.038

RestErrorTest

readJsonIntoObject 0.235
writeObjectIntoJson 0.016
unmarshallXmlIntoObject 0.006
marshallObjectIntoXml 0.004

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.