Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
50 0 0 0 100% 2.727

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.json 50 0 0 0 100% 2.727

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

org.apache.struts2.json

Class Tests Errors Failures Skipped Success Rate Time
JSONEnumTest 2 0 0 0 100% 0.009
JSONInterceptorTest 17 0 0 0 100% 1.719
JSONResultTest 21 0 0 0 100% 0.965
SMDMethodInterfaceTest 3 0 0 0 100% 0.005
JSONUtilTest 1 0 0 0 100% 0.018
JSONPopulatorTest 6 0 0 0 100% 0.011

Test Cases

JSONEnumTest

testEnumAsNameValue 0.004
testEnumAsBean 0.005

JSONInterceptorTest

test 0.397
testBadJSON1 0.089
testBadJSON2 0.107
testBadJSON3 0.109
testBadJSON4 0.105
testBadJSON5 0.101
testBadToTheBoneJSON4 0.077
testSMDDisabledSMD 0.112
testSMDAliasedMethodCall1 0.132
testSMDAliasedMethodCall2 0.086
testSMDNoMethod 0.056
testSMDMethodWithoutAnnotations 0.068
testSMDPrimitivesNoResult 0.06
testSMDReturnObject 0.047
testSMDObjectsNoResult 0.07
testReadEmpty 0.061
testRoot 0.04

JSONResultTest

test 0.068
testSMDDisabledSMD 0.047
testJSONUtilNPEOnNullMehtod 0.043
testJSONWriterEndlessLoopOnExludedProperties 0.035
testSMDDefault 0.04
testSMDDefaultAnnotations 0.038
testExcludeNullPropeties 0.04
testWrapPrefix 0.066
testSuffix 0.034
testPrefixAndSuffix 0.035
testPrefix 0.036
testHierarchy 0.047
testCommentWrap 0.04
test2 0.051
testJSONP 0.039
testNoCache 0.061
testContentType 0.035
testStatusCode 0.037
test2WithEnumBean 0.082
testIncludeProperties 0.045
testIncludePropertiesWithList 0.042

SMDMethodInterfaceTest

testBaseClassOnly 0.002
testInterfaces 0.001
testWithProxy 0.002

JSONUtilTest

testSerializeDeserialize 0.014

JSONPopulatorTest

testNulls 0.002
testPrimitiveBean 0.001
testObjectBean 0.005
testObjectBeanWithStrings 0
testInfiniteLoop 0
testParseBadInput 0