Thursday, 5 April 2018

Hamcrest: Working with classes and objects

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


Previous                                                 Next                                                 Home

No comments:

Post a Comment