Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
174 0 0 0 100% 0.112

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


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
com.google.code.beanmatchers 174 0 0 0 100% 0.112

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

com.google.code.beanmatchers

Class Tests Errors Failures Skipped Success Rate Time
EnumBasedValueGeneratorTest 2 0 0 0 100% 0.012
BeanMatchersTest 19 0 0 0 100% 0.066
HasValidGettersAndSettersExcludingMatcherTest 9 0 0 0 100% 0.004
HasToStringDescribingPropertiesExcludingMatcherTest 12 0 0 0 100% 0.004
BooleanGeneratorTest 1 0 0 0 100% 0
ArrayTypeBasedValueGeneratorTest 2 0 0 0 100% 0
HasValidGettersAndSettersMatcherTest 7 0 0 0 100% 0.002
HasValidBeanHashCodeForMatcherTest 5 0 0 0 100% 0
BeanOperationsTest 12 0 0 0 100% 0.004
InMemoryValueGeneratorRepositoryTest 3 0 0 0 100% 0
BeanMatchersExceptionTest 3 0 0 0 100% 0
ValueGeneratorsTest 3 0 0 0 100% 0.003
HasToStringDescribingPropertiesMatcherTest 11 0 0 0 100% 0.003
ShortGeneratorTest 2 0 0 0 100% 0
InstantiatingMatcherDecoratorTest 4 0 0 0 100% 0.001
MockingTypeBasedValueGeneratorTest 1 0 0 0 100% 0
DoubleGeneratorTest 1 0 0 0 100% 0
SetGeneratorTest 2 0 0 0 100% 0
IntegerGeneratorTest 1 0 0 0 100% 0
ByteGeneratorTest 2 0 0 0 100% 0
DefaultTypeBasedValueGeneratorTest 5 0 0 0 100% 0
UuidGeneratorTest 2 0 0 0 100% 0
HasValidBeanEqualsForMatcherTest 16 0 0 0 100% 0.007
HasValidBeanHashCodeExcludingMatcherTest 6 0 0 0 100% 0.001
JavaBeanTest 14 0 0 0 100% 0.002
CharacterGeneratorTest 2 0 0 0 100% 0
LongGeneratorTest 1 0 0 0 100% 0
HasValidBeanEqualsExcludingMatcherTest 17 0 0 0 100% 0.002
HasValidBeanConstructorMatcherTest 4 0 0 0 100% 0
StringGeneratorTest 2 0 0 0 100% 0
ListGeneratorTest 2 0 0 0 100% 0
FloatGeneratorTest 1 0 0 0 100% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

EnumBasedValueGeneratorTest

shouldObtainEnumValue 0.01
shouldObtainRandomEnumValue 0.002

BeanMatchersTest

shouldThrowExceptionOnBeanWithPropertyNeedingCustomValueGenerator 0.004
testBeanHasValidGettersAndSetters 0.032
testBeanHasValidGettersAndSettersExcluding 0.001
testBeanHasValidGettersAndSettersFor 0.001
testHasValidBeanConstructor 0.001
testHasValidBeanEquals 0.008
testHasValidBeanEqualsExcluding 0
testHasValidBeanEqualsFor 0.001
testHasValidBeanEqualsOnNonReflectedEquals 0
testHasValidBeanHashCodeExcluding 0
testHasValidBeanHashCodeFor 0.001
testHasValidBeanToString 0.014
testHasValidBeanToStringExcluding 0
testHasValidBeanToStringFor 0
testHasValidGettersAndSetters 0.001
testHasValidGettersAndSettersExcluding 0
testHasValidGettersAndSettersFor 0
testHasValidBeanHashCode 0.002
canRegisterCustomValueGenerator 0

HasValidGettersAndSettersExcludingMatcherTest

beanWithInvalidGetterShouldBeDiagnosed 0.003
beanWithInvalidGetterShouldNotMatch 0
beanWithInvalidSetterShouldMatchIfBadPropertyIsExcluded 0
beanWithInvalidSetterShouldNotMatch 0.001
beanWithMissingGetterShouldNotMatch 0
beanWithMissingSetterShouldNotMatch 0
beanWithValidGettersAndSettersShouldMatch 0
shouldDescribeExpectation 0
shouldDescribeExpectationForExcludedProperties 0

HasToStringDescribingPropertiesExcludingMatcherTest

beanWithValidToStringShouldMatch 0
beanWithoutArrayPropertyValueInToStringShouldNotMatch 0.001
beanWithoutClassNameInToStringShouldBeDiagnosed 0.001
beanWithoutClassNameInToStringShouldNotMatch 0
beanWithoutPropertyNameInToStringShouldBeDiagnosed 0.001
beanWithoutPropertyNameInToStringShouldMatchIfPropertyIsExcluded 0
beanWithoutPropertyNameInToStringShouldNotMatch 0.001
beanWithoutPropertyValueInToStringShouldBeDiagnosed 0
beanWithoutPropertyValueInToStringShouldMatchIfPropertyIsExcluded 0
beanWithoutPropertyValueInToStringShouldNotMatch 0
shouldDescribeExpectation 0
shouldDescribeExpectationForExcludedProperties 0

BooleanGeneratorTest

shouldGenerateRandomValue 0

ArrayTypeBasedValueGeneratorTest

arrayShouldHaveAtLeastOneElement 0
canCreateArray 0

HasValidGettersAndSettersMatcherTest

beanWithInvalidGetterShouldBeDiagnosed 0
beanWithInvalidGetterShouldNotMatch 0
beanWithInvalidSetterShouldNotMatch 0
beanWithValidGettersAndSettersForArrayShouldMatch 0.001
beanWithValidGettersAndSettersForListShouldMatch 0.001
beanWithValidGettersAndSettersShouldMatch 0
shouldDescribeExpectation 0

HasValidBeanHashCodeForMatcherTest

beanWithPropertyNotInfluencingHashCodeShouldBeDiagnosed 0
beanWithPropertyNotInfluencingHashCodeShouldMatchIfBadPropertyIsNotIncluded 0
beanWithPropertyNotInfluencingHashCodeShouldNotMatch 0
beanWithValidHashCodeShouldMatch 0
shouldDescribeExpectationForExcludedProperties 0

BeanOperationsTest

canGetMethod 0
canInstantiateClassUsingNoArgsConstructor 0
canInstantiateClassUsingPrivateNoArgsConstructor 0
canInvokeMethod 0
canObtainNoArgsConstructor 0
canObtainPropertyDescriptorOfDefinedProperty 0.003
canUseGetterToObtainPropertyValue 0
canUseSetterToSetPropertyValue 0
shouldThrowExceptionIfGetterIsMissing 0
shouldThrowExceptionIfSetterIsMissing 0
throwsExceptionGivenMethodDoesNotExist 0.001
throwsExceptionGivenObjectIsNullAndInstanceMethod 0

InMemoryValueGeneratorRepositoryTest

canRegisterValueGenerator 0
canRegisterValueGeneratorForTwoTypes 0
shouldNotRegisterValueGeneratorForDifferingType 0

BeanMatchersExceptionTest

canCreateExceptionWithCause 0
canCreateExceptionWithMessage 0
canCreateExceptionWithMessageAndCause 0

ValueGeneratorsTest

canGenerateTwoValues 0
shouldGenerateTwoDistinctValues 0.001
shouldThrowExceptionGivenCannotGenerateTwoDistinctValuesAfterXAttempts 0.002

HasToStringDescribingPropertiesMatcherTest

beanWithValidToStringShouldMatch 0
beanWithoutArrayPropertyValueInToStringShouldNotMatch 0
beanWithoutClassNameInToStringShouldBeDiagnosed 0
beanWithoutClassNameInToStringShouldNotMatch 0
beanWithoutPropertyNameInToStringShouldBeDiagnosed 0
beanWithoutPropertyNameInToStringShouldMatchIfPropertyNotDeclared 0
beanWithoutPropertyNameInToStringShouldNotMatch 0
beanWithoutPropertyValueInToStringShouldBeDiagnosed 0.001
beanWithoutPropertyValueInToStringShouldMatchIfPropertyIsNotDeclared 0.001
beanWithoutPropertyValueInToStringShouldNotMatch 0
shouldDescribeExpectationForExcludedProperties 0.001

ShortGeneratorTest

shouldProvideDifferingValueOnSubsequentCall 0
shouldProvideValue 0

InstantiatingMatcherDecoratorTest

shouldDelegateDescribingMismatch 0.001
shouldDelegateDescription 0
shouldInstantiateBeanAndDelegate 0
shouldReturnDelegatesResponse 0

MockingTypeBasedValueGeneratorTest

testGenerate 0

DoubleGeneratorTest

shouldGenerateRandomValue 0

SetGeneratorTest

shouldProvideDifferingValueOnSubsequentCall 0
shouldProvideList 0

IntegerGeneratorTest

shouldGenerateRandomInteger 0

ByteGeneratorTest

shouldProvideDifferingValueOnSubsequentCall 0
shouldProvideValue 0

DefaultTypeBasedValueGeneratorTest

shouldCreateArrayGivenTypeIsArray 0
shouldDelegateGeneration 0
shouldThrowExceptionWhenNoGeneratorRegisteredForTypeAndTypeIsFinal 0
shouldUseEnumGeneratorGivenTypeIsEnum 0
shouldUseNonFinalGeneratorWhenNoGeneratorRegisteredForTypeAndTypeIsNotFinal 0

UuidGeneratorTest

shouldProvideDifferingUuidOnSubsequentCall 0
shouldProvideUuid 0

HasValidBeanEqualsForMatcherTest

beanWithEqualsNotAccountingNullValueShouldNotMatch 0.001
beanWithEqualsNotHandlingDifferingTypeShouldBeDiagnosed 0.001
beanWithEqualsNotHandlingDifferingTypeShouldNotMatch 0
beanWithEqualsNotHandlingNullPropertyShouldBeDiagnosed 0.001
beanWithEqualsNotHandlingNullValueShouldBeDiagnosed 0
beanWithEqualsNotHandlingNullValueShouldNotMatch 0
beanWithEqualsNotHandlingSameInstanceShouldBeDiagnosed 0.001
beanWithEqualsNotHandlingSameInstanceShouldNotMatch 0
beanWithEqualsNotHandlingSamePropertyValuesShouldNotMatch 0.001
beanWithEqualsNotHandlingThatNullPropertyShouldNotMatch 0
beanWithEqualsNotHandlingThisNullPropertyShouldNotMatch 0
beanWithPropertyNotInfluencingEqualsShouldBeDiagnosed 0.001
beanWithPropertyNotInfluencingEqualsShouldMatchIfBadPropertyIsNotIncluded 0
beanWithPropertyNotInfluencingEqualsShouldNotMatch 0.001
beanWithValidEqualsShouldMatch 0
shouldDescribeExpectationForExcludedProperties 0

HasValidBeanHashCodeExcludingMatcherTest

beanWithPropertyNotInfluencingHashCodeShouldBeDiagnosed 0
beanWithPropertyNotInfluencingHashCodeShouldMatchIfBadPropertyIsExcluded 0
beanWithPropertyNotInfluencingHashCodeShouldNotMatch 0
beanWithValidHashCodeShouldMatch 0.001
shouldDescribeExpectation 0
shouldDescribeExpectationForExcludedProperties 0

JavaBeanTest

canGetPropertyFromBean 0
canObtainBeanType 0
canObtainPropertyType 0
canSetPropertyOnBean 0
equalsShouldCompareToTargetBeanAndReturnFalseGivenBeansAreNotEqual 0.001
equalsShouldCompareToTargetBeanAndReturnTrueGivenBeansAreEqual 0
equalsShouldCompareToTargetBeansAndReturnFalseGivenJavaBeanAndTargetBeansAreNotEqual 0
equalsShouldCompareToTargetBeansAndReturnTrueGivenJavaBeanAndTargetBeansAreEqual 0
getPropertyShouldThrowExceptionGivenPropertyDoesNotExistOnBean 0
hashCodeShouldObtainTheHashCodeValueFromTargetBean 0
propertiesShouldObtainTheOnlyPropertyOnBean 0.001
propertyTypeShouldThrowExceptionGivenPropertyDoesNotExistOnBean 0
setPropertyShouldThrowExceptionGivenPropertyDoesNotExistOnBean 0
toStringShouldObtainTheToStringValueFromTargetBean 0

CharacterGeneratorTest

shouldProvideDifferingValueOnSubsequentCall 0
shouldProvideValue 0

LongGeneratorTest

shouldGenerateRandomValue 0

HasValidBeanEqualsExcludingMatcherTest

beanWithEqualsNotAccountingNullValueShouldNotMatch 0
beanWithEqualsNotHandlingDifferingTypeShouldBeDiagnosed 0
beanWithEqualsNotHandlingDifferingTypeShouldNotMatch 0
beanWithEqualsNotHandlingNullPropertyShouldBeDiagnosed 0
beanWithEqualsNotHandlingNullValueShouldBeDiagnosed 0.001
beanWithEqualsNotHandlingNullValueShouldNotMatch 0
beanWithEqualsNotHandlingSameInstanceShouldBeDiagnosed 0
beanWithEqualsNotHandlingSameInstanceShouldNotMatch 0
beanWithEqualsNotHandlingSamePropertyValuesShouldNotMatch 0
beanWithEqualsNotHandlingThatNullPropertyShouldNotMatch 0.001
beanWithEqualsNotHandlingThisNullPropertyShouldNotMatch 0
beanWithPropertyNotInfluencingEqualsShouldBeDiagnosed 0
beanWithPropertyNotInfluencingEqualsShouldMatchIfBadPropertyIsExcluded 0
beanWithPropertyNotInfluencingEqualsShouldNotMatch 0
beanWithValidEqualsShouldMatch 0
shouldDescribeExpectation 0
shouldDescribeExpectationForExcludedProperties 0

HasValidBeanConstructorMatcherTest

beanWithInvalidGetterShouldBeDiagnosed 0
beanWithNoArgsConstructorShouldMatch 0
beanWithoutNoArgsConstructorShouldNotMatch 0
shouldDescribeExpectation 0

StringGeneratorTest

shouldProvideDifferingStringOnSubsequentCall 0
shouldProvideString 0

ListGeneratorTest

shouldProvideDifferingValueOnSubsequentCall 0
shouldProvideList 0

FloatGeneratorTest

shouldGenerateRandomValue 0.001