Modifier and Type | Method and Description |
---|---|
void |
BeanLikeTester.testBeanLike(BeanLikeTester.PropertiesAndValues propsWithDefaultValue,
BeanLikeTester.PropertiesAndValues propsWithOtherValue)
|
void |
BeanLikeTester.testDefaultValues(BeanLikeTester.PropertiesAndValues expectedDefaultValues)
Test that the default value of the properties (returned by the accessors)
are the same as the one defined by the parameter.
The properties are also tested for objects created with all the possible constructors. |
void |
BeanLikeTester.testEqualsAndHash(BeanLikeTester.PropertiesAndValues propsWithDefaultValue,
BeanLikeTester.PropertiesAndValues propsWithOtherValue)
Test that equals() and hashCode() take into account all the properties and return the correct values.
|
void |
BeanLikeTester.testMutatorsAndAccessors(BeanLikeTester.PropertiesAndValues propsWithValue,
BeanLikeTester.PropertiesAndValues otherPropsWithValue)
Test that all the mutators (setters, and constructors with arguments) can change their property
and that the accessors reflect the change.
|
void |
BeanLikeTester.testToString(BeanLikeTester.PropertiesAndValues propsWithDefaultValue,
BeanLikeTester.PropertiesAndValues propsWithOtherValue)
Test that the method toString() returns a different String if one of the settable properties has changed.
|
Constructor and Description |
---|
BeanLikeTester.PropertiesAndValues(BeanLikeTester.PropertiesAndValues defaultValues) |
Copyright © 2014. All Rights Reserved.