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()).
No comments:
Post a Comment