How would I assertThat something is null?
assertThat
null
for example
assertThat(attr.getValue(), is(\"\"));
But I get an e
You can use IsNull.nullValue() method:
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; assertThat(attr.getValue(), is(nullValue()));