Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
104 4 4 0 92.308% 3.339

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

Package List


Package Tests Errors Failures Skipped Success Rate Time
junitx.ddtunit.sandbox 1 1 0 0 0% 0.009
junitx.ddtunit 19 0 0 0 100% 0.946
junitx.ddtunit.data.processing.parser 4 2 0 0 50% 0.044
junitx.ddtunit.data 5 0 1 0 80% 0.15
junitx.ddtunit.resources 8 0 0 0 100% 0.006
junitx.ddtunit.optional.junit4 2 0 0 0 100% 0.052
junitx.ddtunit.util 6 1 1 0 66.667% 0.012
junitx.ddtunit.usecases 1 0 0 0 100% 0.065
junitx.ddtunit.data.processing 11 0 0 0 100% 0.192
junitx.ddtunit.functest 47 0 2 0 95.745% 1.863

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

junitx.ddtunit.sandbox

Class Tests Errors Failures Skipped Success Rate Time
ParserTest 1 1 0 0 0% 0.009

junitx.ddtunit

Class Tests Errors Failures Skipped Success Rate Time
ActualTest 1 0 0 0 100% 0.02
DDTExceptionClassTest 2 0 0 0 100% 0.002
DDTRunMonitorTest 3 0 0 0 100% 0.136
ExceptionHandlerTest 4 0 0 0 100% 0.004
ExecutionResultTest 3 0 0 0 100% 0.072
SimpleDDTUnitTest 3 0 0 0 100% 0.084
SpecificationAssertTest 1 0 0 0 100% 0.04
XmlEntityResourceTest 1 0 0 0 100% 0.547
XmlEntityTest 1 0 0 0 100% 0.041

junitx.ddtunit.data.processing.parser

Class Tests Errors Failures Skipped Success Rate Time
DDTEntityResolverTest 2 0 0 0 100% 0.002
ParserTest 2 2 0 0 0% 0.042

junitx.ddtunit.data

Class Tests Errors Failures Skipped Success Rate Time
DDTTestDataExceptionTest 2 0 1 0 50% 0.018
ObjectAsserterTest 2 0 0 0 100% 0.055
VerifyTestOrderExecutionTest 1 0 0 0 100% 0.077

junitx.ddtunit.resources

Class Tests Errors Failures Skipped Success Rate Time
SimpleVOEqualsContractTest 8 0 0 0 100% 0.006

junitx.ddtunit.optional.junit4

Class Tests Errors Failures Skipped Success Rate Time
DDTJUnit4ClassRunnerTest 2 0 0 0 100% 0.052

junitx.ddtunit.util

Class Tests Errors Failures Skipped Success Rate Time
ClassAnalyserTest 3 0 0 0 100% 0.006
DDTConfigurationTest 1 0 1 0 0% 0.002
PrivilegedAccessorTest 1 0 0 0 100% 0.001
RetrieveResourceFromJarTest 1 1 0 0 0% 0.003

junitx.ddtunit.usecases

Class Tests Errors Failures Skipped Success Rate Time
UserBeanTest 1 0 0 0 100% 0.065

junitx.ddtunit.data.processing

Class Tests Errors Failures Skipped Success Rate Time
ContentCreatorActionTest 2 0 0 0 100% 0.003
DateCreatorActionTest 2 0 0 0 100% 0.004
EngineTest 1 0 0 0 100% 0.003
ProcessClassGlobalObjectsTest 2 0 0 0 100% 0.079
SubelementCreatorActionTest 1 0 0 0 100% 0.003
TypeAbbreviatorTest 2 0 0 0 100% 0.043
VerifyBeanGetNameBugTest 1 0 0 0 100% 0.057

junitx.ddtunit.functest

Class Tests Errors Failures Skipped Success Rate Time
CollectionContainerModifierTest 1 0 0 0 100% 0.061
ProcessArrayDataTest 4 0 0 0 100% 0.132
ProcessBeansValuesTest 4 0 0 0 100% 0.114
ProcessCollectionTypeTest 8 0 0 0 100% 0.323
ProcessComparableDataTest 1 0 0 0 100% 0.082
ProcessConstantValuesTest 3 0 0 0 100% 0.075
ProcessConstructorValuesTest 4 0 0 0 100% 0.121
ProcessDateDataTest 2 0 0 0 100% 0.127
ProcessExpectedExceptionErrorTest 1 0 0 0 100% 0.083
ProcessExpectedExceptionTest 1 0 0 0 100% 0.032
ProcessGenericValuesTest 3 0 0 0 100% 0.088
ProcessMapTypeTest 5 0 0 0 100% 0.17
ProcessMethodCallValuesTest 1 0 0 0 100% 0.039
ProcessObjectReferenceTest 3 0 0 0 100% 0.137
ProcessSetTypeTest 5 0 1 0 80% 0.209
ProcessStringDataTest 1 0 1 0 0% 0.07

Test Cases

ActualTest

testMethod 0.017

DDTTestDataExceptionTest

testRetrievalOfEmptyClusterDataSet 0.006
testParsingErrorBehavior 0.011
Wrong message of caught exception expected:<No testdata provided for class id 'DbRepositoryAccessTest' in testresource '/junitx/ddtunit/data/DDT-DefectXMLTest.xml' Check if referred class id in xml resources matches definition of initTestData(resource, classId) inside of your testclass...> but was:<Error during parsing of xml testresource Resource 'file:/Users/jgellien/workspace/ddtunit/target/test-classes/junitx/ddtunit/data/DDT-DefectXMLTest.xml' line/column 16/75 Caused by:org.xml.sax.SAXParseException - cvc-complex-type.3.2.2: Attribute 'wrong' is not allowed to appear in element 'obj'...>

ObjectAsserterTest

testIsContainedIn 0.049
testIsInRange 0.003

ContentCreatorActionTest

testSingleContentForSubelement 0.001
testMultipleContentActionProcessing 0

DateCreatorActionTest

testShortFormat 0.001
testspecialFormat 0.001

EngineTest

testObjectProcessing 0.003

DDTEntityResolverTest

testSystemIdMapping 0
testDDTSystemIdMapping 0.001

ParserTest

testParseElementFromStringBufferAutoHeader 0.017
Error during parsing of xml testresource from reader. Caused by:org.xml.sax.SAXParseException - cvc-elt.1: Cannot find the declaration of element 'obj'.
testParseElementFromStringBufferPredefinedHeader 0.01
Error during parsing of xml testresource from reader. Caused by:org.xml.sax.SAXParseException - cvc-elt.1: Cannot find the declaration of element 'obj'.

ProcessClassGlobalObjectsTest

testDirectReadOnScope 0.075
testLocalGlobalScopeAccess 0.003

SubelementCreatorActionTest

testActionSubelementCreator 0.002

TypeAbbreviatorTest

testResolve 0.033
testToString 0.002

VerifyBeanGetNameBugTest

testGetNameBeanCreation 0.057

VerifyTestOrderExecutionTest

testMethodTestOrder 0.066

DDTExceptionClassTest

testCreateSingleException 0.001
testCreateDoubleException 0

DDTRunMonitorTest

testRunStandardTestCase 0.003
testRunDDTTestCase 0.131
testGetInstance 0

ExceptionHandlerTest

testProcessUnknownException 0
testProcessInvocationTargetExNoAsserts 0
testProcessExpectedException 0.001
testCheckOnExpectedException 0

ExecutionResultTest

testRunThreeMethodTestsNoProblem 0.051
testRunThreeMethodTestsOneAssertFailedException 0.007
testRunThreeMethodTestsOneAssertFailedOneException 0.011

CollectionContainerModifierTest

testContainer 0.06

ProcessArrayDataTest

testArrayObjectType 0.12
testSpecialCaseArrayObjectType 0.002
testArrayOfCollections 0.002
testArrayOfBeanObjects 0.002

ProcessBeansValuesTest

testReadBeanField 0.102
testReadSimpleVO 0.004
testNestedComplexFields 0.001
testPrimitiveFields 0.002

ProcessCollectionTypeTest

testReadVector 0.275
testReadNullVector 0.001
testReadNestedCollection 0.004
testReadNestedMixedType 0.005
testArrayFromCollection 0.002
testDoubleNestedCollectionInAssert 0.001
testIdentifyCollection 0.016
testNestedVoWithCollection 0.001

ProcessComparableDataTest

testComparableType 0.082

ProcessConstantValuesTest

testConstantsAsObjectsAndFields 0.064
testConstantsAsContainerEntries 0.002
testJDK5Enumerator 0.003

ProcessConstructorValuesTest

testReadConstructor 0.111
testGenericWithComplexField 0.002
testCollectionWithConstructorElements 0.002
testComplexWithConstructorCollectionArg 0.002

ProcessDateDataTest

testDateType 0.12
testSpecificDateType 0.004

ProcessExpectedExceptionErrorTest

testDefinedbutNotRaisedException 0.083

ProcessExpectedExceptionTest

testProcessExpectedException 0.031

ProcessGenericValuesTest

testReadSimpleVO 0.08
testNestedComplexFields 0.001
testPrimitiveFields 0.002

ProcessMapTypeTest

testReadMap 0.155
testReadSpecialMap 0.003
testReadMapAsField 0.003
testReadMapAsCollectionMember 0.002
testArrayFromMap 0.003

ProcessMethodCallValuesTest

testCreateFromMethodCall 0.037

ProcessObjectReferenceTest

testOneObjectReference 0.125
testReferenceTransitivity 0.005
testReferenceOnSubelement 0.004

ProcessSetTypeTest

testReadNestedMixedType 0.178
testReadSet 0.004
testReadNullSet 0.001
testReadNestedSet 0.003
testArrayFromSet 0.01
method testArrayFromSet - Total: 2, Errors: 0, Failures: 2 F-(readArrayFromSet) [array length] expected:<2> but was:<3> F-(readArrayFromSetShortcut) Wrong isEqual assert (result) on arrays [array length] expected:<2> but was:<3>

ProcessStringDataTest

testStringType 0.067
method testStringType - Total: 15, Errors: 0, Failures: 2 F-(assertBlankTagEqualsBlank) Assert(result):Wrong isEqual assert on (multiline) string [position 0] expected:< > but was:<> F-(differentCDATAStrings) Assert(result):Wrong isNotEqual assert (result) expected not equals to: <CData type>

DDTJUnit4ClassRunnerTest

simpleJUnitAssert 0.032
retrieveObjectData 0.014

SimpleVOEqualsContractTest

testEqualsAgainstNewObject 0.001
testEqualsAgainstNull 0
testEqualsAgainstUnequalObjects 0
testEqualsIsConsistentAcrossInvocations 0.002
testEqualsIsReflexive 0.001
testEqualsIsSymmetricAndTransitive 0
testHashCodeContract 0
testHashCodeIsConsistentAcrossInvocations 0

ParserTest

testParseElementWithBaseObject 0.008
Error during parsing of xml testresource from reader. Caused by:org.xml.sax.SAXParseException - cvc-elt.1: Cannot find the declaration of element 'obj'.

SimpleDDTUnitTest

testSimpleJUnitAssert 0.073
testRetrieveObjectData 0.003
testRetrieveAssertData 0.004

SpecificationAssertTest

testMethod 0.039

UserBeanTest

testCreateUser 0.064

ClassAnalyserTest

testGetSuperElements 0.001
testFindInheritedMethod 0.001
testGetPrimitiveClazz 0.002

DDTConfigurationTest

testLoadString 0.001
Expected deactivated Monitor

PrivilegedAccessorTest

testSetFieldValue 0

RetrieveResourceFromJarTest

testReadResourceFromJar 0.002

XmlEntityResourceTest

testReadExternalEntityParam 0.521

XmlEntityTest

testReadExternalEntityParam 0.025

Failure Details


testParsingErrorBehavior
junitx.framework.ComparisonFailure: Wrong message of caught exception expected:<No testdata provided for class id 'DbRepositoryAccessTest' in testresource '/junitx/ddtunit/data/DDT-DefectXMLTest.xml' Check if referred class id in xml resources matches definition of initTestData(resource, classId) inside of your testclass...> but was:<Error during parsing of xml testresource Resource 'file:/Users/jgellien/workspace/ddtunit/target/test-classes/junitx/ddtunit/data/DDT-DefectXMLTest.xml' line/column 16/75 Caused by:org.xml.sax.SAXParseException - cvc-complex-type.3.2.2: Attribute 'wrong' is not allowed to appear in element 'obj'...>
testParseElementFromStringBufferAutoHeader
junitx.ddtunit.DDTException: Error during parsing of xml testresource from reader. Caused by:org.xml.sax.SAXParseException - cvc-elt.1: Cannot find the declaration of element 'obj'.
testParseElementFromStringBufferPredefinedHeader
junitx.ddtunit.DDTException: Error during parsing of xml testresource from reader. Caused by:org.xml.sax.SAXParseException - cvc-elt.1: Cannot find the declaration of element 'obj'.
testArrayFromSet
junit.framework.AssertionFailedError: method testArrayFromSet - Total: 2, Errors: 0, Failures: 2 F-(readArrayFromSet) [array length] expected:<2> but was:<3> F-(readArrayFromSetShortcut) Wrong isEqual assert (result) on arrays [array length] expected:<2> but was:<3>
testStringType
junit.framework.AssertionFailedError: method testStringType - Total: 15, Errors: 0, Failures: 2 F-(assertBlankTagEqualsBlank) Assert(result):Wrong isEqual assert on (multiline) string [position 0] expected:< > but was:<> F-(differentCDATAStrings) Assert(result):Wrong isNotEqual assert (result) expected not equals to: <CData type>
testParseElementWithBaseObject
junitx.ddtunit.DDTException: Error during parsing of xml testresource from reader. Caused by:org.xml.sax.SAXParseException - cvc-elt.1: Cannot find the declaration of element 'obj'.
testLoadString
junit.framework.AssertionFailedError: Expected deactivated Monitor
testReadResourceFromJar
java.lang.NullPointerException