Summary

Tests Errors Failures Skipped Success Rate Time
131 0 0 0 100% 0.658

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

Package List

Package Tests Errors Failures Skipped Success Rate Time
org.pojomatic.internal 89 0 0 0 100% 0.564
org.pojomatic 9 0 0 0 100% 0.026
org.pojomatic.diff 11 0 0 0 100% 0.021
org.pojomatic.formatter 22 0 0 0 100% 0.047

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

org.pojomatic.internal

Class Tests Errors Failures Skipped Success Rate Time
SelfPopulatingMapTest 2 0 0 0 100% 0.016
PojomatorImplTest 37 0 0 0 100% 0.251
ClassPropertiesTest 18 0 0 0 100% 0.145
OverridableMethodsTest 10 0 0 0 100% 0.094
PropertyFilterTest 6 0 0 0 100% 0.011
PropertyElementTest 12 0 0 0 100% 0.024
EqualsInheritanceTest 4 0 0 0 100% 0.023

org.pojomatic

Class Tests Errors Failures Skipped Success Rate Time
PojomaticTest 9 0 0 0 100% 0.026

org.pojomatic.diff

Class Tests Errors Failures Skipped Success Rate Time
NoDifferencesTest 3 0 0 0 100% 0.007
ValueDifferenceTest 3 0 0 0 100% 0.007
PropertyDifferencesTest 5 0 0 0 100% 0.007

org.pojomatic.formatter

Class Tests Errors Failures Skipped Success Rate Time
AccountNumberFormatterTest 4 0 0 0 100% 0.01
DefaultPojoFormatterTest 4 0 0 0 100% 0.014
DefaultPropertyFormatterTest 14 0 0 0 100% 0.023

Test Cases

SelfPopulatingMapTest

testThreading 0.012
testBadConstructionFirstTime 0.002

PojomatorImplTest

testToString 0.069
testNullHashCode 0
testToStringOnNull 0.001
testNullInstanceEquals 0.001
testNullEquals 0.001
testReflexiveEquals 0.003
testCastCheckFailureForEquals 0.001
testPropertyEquals 0.002
testNullPropertyEquals 0
testPrimitivePropertyEquals 0.001
testObjectArrayPropertyEquals 0.003
testPrimitiveArrayEquals 0.012
testDeepObjectArrayEquals 0.001
testArrayVsNonArrayEquals 0.001
testShortCircuitEquals 0.001
testNullValueHashCode 0.002
testPropertyHashCode 0
testPropertyPairHashCode 0
testPrimitiveHashCode 0.001
testObjectArrayHashCode 0.001
testPrimitiveArrayHashCode 0.004
testSimpleToString 0.003
testToStringNames 0.001
testCustomFormatters 0.013
testDiffNullInstance 0
testDiffNullOther 0
testDiffNulls 0
testDiffSameObject 0.001
testDiffEqualObjects 0.001
testDiffDifferentObjectsWithSinglePropertyDifferent 0.028
testDiffDifferentObjectsWithMultiplePropertiesDifferent 0.004
testDiffAgainstWrongType 0.001
testDiffWrongType 0.001
testNonPojomatedClass 0.012
testPrivateClass 0.01
testInterface 0.007
testIsCompatibleForEquals 0.004

ClassPropertiesTest

testInterface 0.007
testIsCompatibleForEquals 0.022
testForClass 0
testAnnotatedFields 0.004
testAutoFields 0.003
testAnnotatedMethods 0.004
testAutoMethods 0.008
testAnnotatedMethodReturningVoid 0.003
testAnnotatedMethodTakingArgs 0.003
testAnnotatedInheritance 0.008
testAutoInheritanceBothAuto 0.006
testAutoInheritanceWithOverride 0.006
testAutoInheritanceAnnotatedParent 0.005
testAutoInheritanceAutoParentAnnotatedChild 0.005
testOverriddenMethods 0.015
testAnnotatedStaticField 0.004
testAnnotatedStaticMethod 0.002
testSubclassCannotOverrideEquals 0.011

OverridableMethodsTest

testPackagePrivate 0.032
testPackagePrivateToProtected 0.003
testPackagePrivateToPublic 0.003
testProtected 0.003
testPublic 0.003
testEqualsThenEquals 0.002
testEqualsThenToString 0.002
testEqualsThenToEqualsString 0.001
testEqualsHashCodeThenEqualsHashCode 0.001
testEqualsThenEqualsHashCode 0.001

AccountNumberFormatterTest

testFormat 0.003
testFormatNull 0
testFormatBlank 0
testFormatMin 0.001

PojomaticTest

testToString 0.003
testEquals 0.001
testPojomator 0.001
testDiffNoDifferences 0.001
testDiffBothNull 0
testDiffNullFirst 0
testDiffNullSecond 0
testHashCode 0
testCompatibleForEquality 0.006

NoDifferencesTest

testAreEqual 0.001
testToString 0.001
testDifferences 0.001

PropertyFilterTest

testGetRolesWithNoClassPolicy 0.001
testGetRolesWithPropertyPolicyAndClassPolicy 0.001
testGetRolesWithDefaultPropertyPolicyAndNoClassPolicy 0
testGetRolesWithDefaultPropertyPolicyAndClassPolicy 0.001
testGetRolesWithOnlyClassPolicy 0.001
testGetRolesWithNoPolicy 0

ValueDifferenceTest

testPropertyName 0.001
testLeftValue 0.001
testRightValue 0

DefaultPojoFormatterTest

testGetPropertyPrefix 0.006
testGetPropertySuffix 0
testGetToStringPrefix 0.001
testGetToStringSuffix 0

DefaultPropertyFormatterTest

testFormat 0
testFormatNull 0
testFormatList 0
testFormatArrayOfObjects 0
testFormatArrayOfBooleans 0.001
testFormatArrayOfBytes 0.001
testFormatArrayOfChars 0.001
testFormatArrayOfShorts 0.001
testFormatArrayOfInts 0
testFormatArrayOfLongs 0
testFormatArrayOfFloats 0
testFormatArrayOfDoubles 0.001
testFormatDoubleArray 0.001
testFormatDoubleArrayOfPrimitives 0

PropertyDifferencesTest

testConstructorNullPointerException 0.001
testEmptyDifferences 0.001
testSingleDifferenceToString 0.001
testMultipleDifferencesToString 0.001
testAreEqual 0

PropertyElementTest

testToString 0
testGetValueNullField 0
testGetValueNullMethod 0
testGetValueField 0
testGetValueMethod 0
testGetDeclaringClass 0
testEquals 0
testMethodHashCode 0
testFieldHashCode 0
testGetNameForField 0.001
testOverrideNameForAccessor 0.001
testGetNameForAccessor 0.007

EqualsInheritanceTest

testChildWithNoNewProperties 0.005
testChildWithNewProperty 0.004
testTwoChildrenWithNoNewProperties 0.004
testTwoChildrenWithOneHavingNewProperties 0.004