java - How to assertThat something is null with Hamcrest? - Stack Overflow
You can use IsNull.nullValue() method:
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; assertThat(attr.getValue(), is(nullValue()));Read full article from java - How to assertThat something is null with Hamcrest? - Stack Overflow
No comments:
Post a Comment