Summary

Tests Errors Failures Skipped Success Rate Time
21 0 0 0 100% 0.717

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

Package List

Package Tests Errors Failures Skipped Success Rate Time
com.atlassian.xwork.validator.validators 7 0 0 0 100% 0.306
com.atlassian.xwork.interceptors 14 0 0 0 100% 0.411

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

com.atlassian.xwork.validator.validators

Class Tests Errors Failures Skipped Success Rate Time
TestCommaSeparatedEmailValidator 7 0 0 0 100% 0.306

com.atlassian.xwork.interceptors

Class Tests Errors Failures Skipped Success Rate Time
TestSimpleValidationInterceptor 2 0 0 0 100% 0.03
TestXWorkTransactionInterceptor 3 0 0 0 100% 0.173
TestSafeParametersInterceptor 9 0 0 0 100% 0.208

Test Cases

TestSimpleValidationInterceptor

testReturnsInputIfNoErrors 0.028
testInvokesIfNoErrors 0.001

TestCommaSeparatedEmailValidator

testSingleEmailIsValid 0.301
testNonEmailIsInvalid 0.001
testMultipleNonEmailIsInvalid 0
testEmptyStringIsValid 0
testNullIsValid 0
testMultipleEmailsAreValid 0
testMultipleMixedAreInvalid 0

TestXWorkTransactionInterceptor

testSuccessCommitsTwice 0.11
testRuntimeExceptionInActionRollsBack 0.037
testRollBackInActionDoesNotRollBackAgain 0.001

TestSafeParametersInterceptor

testSimpleSetters 0.164
testIndexedSetters 0
testTraverseIndexedSetters 0.022
testMultipleTraversing 0.001
testMixedTraversingAndIndexing 0.001
testUnsafeCharacters 0
testDotNotation 0
testMapNotation 0.001
testMapNotationWithBadCharacters 0