Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
53 0 0 4 92.453% 9.092

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% 5.933
info.magnolia.rest 31 0 0 0 100% 2.957
info.magnolia.rest.registry 17 0 0 4 76.471% 0.202

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.362
RemoveRoleFromUserTaskTest 1 0 0 0 100% 2.033
RestIntegrationModuleVersionHandlerTest 3 0 0 0 100% 3.538

info.magnolia.rest

Class Tests Errors Failures Skipped Success Rate Time
RepositoryExceptionMapperTest 4 0 0 0 100% 0.053
RestJerseyDispatcherServletTest 7 0 0 0 100% 1.833
RuntimeRepositoryExceptionMapperTest 2 0 0 0 100% 0.04
RestExceptionMapperTest 6 0 0 0 100% 0.524
RestDispatcherServletTest 8 0 0 0 100% 0.243
RestErrorTest 4 0 0 0 100% 0.264

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

Test Cases

[Summary] [Package List] [Test Cases]

RepositoryExceptionMapperTest

accessDeniedException 0.005
invalidQueryException 0.038
unknownRepositoryException 0.004
pathNotFoundException 0.006

RestJerseyDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.538
registerMultipleEndpointsWithYamlPath 0.456
registerMultipleEndpointsWithConfiguredPath 0.193
dontFailWithNpeIfImplementationClassIsMissing 0.15
dontFailWithNpeIfProviderClassIsMissing 0.129
registerAdditionalProviders 0.236
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.128

RuntimeRepositoryExceptionMapperTest

runtimeRepositoryExceptionDoesNotHaveCause 0.034
runtimeRepositoryExceptionHasCause 0.005

RestExceptionMapperTest

testThatRestExceptionMapperDoesNotProvideAStackTrace 0.431
notFoundWhenNoResourceMethodCalled 0.004
testMapsRepositoryExceptionToInternalServerError 0.006
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.356

RemoveRoleFromUserTaskTest

removeRoleFromUser 2.025

RestDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.131
registerMultipleEndpointsWithYamlPath 0.017
registerMultipleEndpointsWithConfiguredPath 0.016
dontFailWithNpeIfImplementationClassIsMissing 0.017
dontFailWithNpeIfProviderClassIsMissing 0.012
registerMultipleEndpointsOnAuthorInstance 0.021
registerAdditionalProviders 0.013
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.014

RestIntegrationModuleVersionHandlerTest

updateFrom12UpdatesRestEditorRole 1.389
basicInstallSuperuserHasRoleRest 1.21
updateFrom123ChangeRestEditorRoleToRestAdminRole 0.935

EndpointDefinitionRegistryTest

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

RestErrorTest

readJsonIntoObject 0.24
writeObjectIntoJson 0.011
unmarshallXmlIntoObject 0.007
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.