Wednesday 21 February 2018

Hamcrest: Match null values


Hamcrest provides below matchers to check whether object is null or not.

nullValue    : Creates a matcher that matches if examined object is null
notNullValue: Creates a matcher that matches if examined object is not null. It is shortcut to not(nullValue()).



Previous                                                 Next                                                 Home

No comments:

Post a Comment