Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
31 0 0 0 100% 1.033

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.apache.struts2.rest.handler 3 0 0 0 100% 0.257
org.apache.struts2.rest 28 0 0 0 100% 0.776

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.struts2.rest.handler

Class Tests Errors Failures Skipped Success Rate Time
JsonLibHandlerTest 3 0 0 0 100% 0.257

org.apache.struts2.rest

Class Tests Errors Failures Skipped Success Rate Time
RestActionMapperTest 12 0 0 0 100% 0.642
RestWorkflowInterceptorTest 1 0 0 0 100% 0.081
DefaultHttpHeadersTest 12 0 0 0 100% 0.012
ContentTypeHandlerManagerTest 3 0 0 0 100% 0.041

Test Cases

RestActionMapperTest

testGetMapping 0.27
testPostMapping 0
testDeleteMapping 0
testPutMapping 0.013
testGetIdMapping 0
testNewMapping 0.001
testEditMapping 0
testEditSemicolonMapping 0.001
testGetJsessionIdSemicolonMapping 0
testParseNameAndNamespace 0.001
testParseNameAndNamespaceWithNamespaces 0.001
testParseNameAndNamespaceWithEdit 0

JsonLibHandlerTest

testFromObject 0.246
testFromObjectArray 0.005
testToObject 0.005

RestWorkflowInterceptorTest

testCustomValidationFailureStatusCode 0.08

DefaultHttpHeadersTest

testApply 0
testApplyNoLocationExtension 0
testApplyFullLocation 0
testAutoETag 0.001
testNoCache 0
testConditionalGetForJustETag 0
testConditionalGetForJustETagNotOK 0
testConditionalGetForJustLastModified 0.001
testConditionalGetForJustLastModifiedDifferent 0
testConditionalGetForLastModifiedAndETag 0.006
testConditionalGetForLastModifiedAndETagButNoCache 0
testConditionalGetForLastModifiedAndETagWithBadETag 0

ContentTypeHandlerManagerTest

testHandleResultOK 0.025
testHandleResultNotModified 0.003
testHandlerOverride 0.011