Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.516
info.magnolia.rest 30 0 0 0 100% 3.347
info.magnolia.rest.registry 17 0 0 4 76.471% 0.184

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.449
RemoveRoleFromUserTaskTest 1 0 0 0 100% 2.594
RestIntegrationModuleVersionHandlerTest 3 0 0 0 100% 3.473

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% 2.084
RuntimeRepositoryExceptionMapperTest 2 0 0 0 100% 0.021
RestExceptionMapperTest 6 0 0 0 100% 0.682
RestDispatcherServletTest 7 0 0 0 100% 0.181
RestErrorTest 4 0 0 0 100% 0.326

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

Test Cases

[Summary] [Package List] [Test Cases]

RepositoryExceptionMapperTest

accessDeniedException 0.01
invalidQueryException 0.008
unknownRepositoryException 0.007
pathNotFoundException 0.028

RestJerseyDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.783
registerMultipleEndpointsWithYamlPath 0.307
registerMultipleEndpointsWithConfiguredPath 0.277
dontFailWithNpeIfImplementationClassIsMissing 0.714
dontFailWithNpeIfProviderClassIsMissing 0.001
registerAdditionalProviders 0
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.001

RuntimeRepositoryExceptionMapperTest

runtimeRepositoryExceptionDoesNotHaveCause 0.006
runtimeRepositoryExceptionHasCause 0.015

RestExceptionMapperTest

testThatRestExceptionMapperDoesNotProvideAStackTrace 0.566
notFoundWhenNoResourceMethodCalled 0.016
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.449

RemoveRoleFromUserTaskTest

removeRoleFromUser 2.593

RestDispatcherServletTest

shouldUnregisterExistedEndpointThenReregister 0.081
registerMultipleEndpointsWithYamlPath 0.019
registerMultipleEndpointsWithConfiguredPath 0.016
dontFailWithNpeIfImplementationClassIsMissing 0.022
dontFailWithNpeIfProviderClassIsMissing 0.013
registerAdditionalProviders 0.017
failureUponRegistrationOfOneEndpointDoesNotLeadToSkippingOthers 0.013

RestIntegrationModuleVersionHandlerTest

updateFrom12UpdatesRestEditorRole 1.231
basicInstallSuperuserHasRoleRest 1.231
updateFrom123ChangeRestEditorRoleToRestAdminRole 1.011

EndpointDefinitionRegistryTest

firedEventContainsDecoratedProvider 0.009
register 0.072
decoratorsTriggerRegistryEvents 0.01
unregister 0.012
getProvider 0.008
getNonExistingProvider 0.011
registerAndConflictedEndpointShouldRaiseMajorProblem 0.009
registeringSameNameEndpointJustTakesTheFirstEndpoint 0.009
unregisterAndRegisterWhenEmpty 0.008
getExistingWithDeprecatedApi 0.008
getInvalidProvider 0.007
getNonExistingWithDeprecatedApi 0.012
getAllDefinitions 0.006

RestErrorTest

readJsonIntoObject 0.291
writeObjectIntoJson 0.02
unmarshallXmlIntoObject 0.009
marshallObjectIntoXml 0.005

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.