Hamcrest
provides below matchers to check the properties of a class and values
associated with objects.
hasProperty:
Check whether given object has specific property or not
isA:
Check whether object is of given type
typeCompatibleWith:
Check the compatibility of one type with other
samePropertyValuesAs:
Check two beans properties
any:
Match an object that is instance of class
No comments:
Post a Comment