hamkrest icon indicating copy to clipboard operation
hamkrest copied to clipboard

Question: have I missed something fundamental?

Open rossbeazley opened this issue 2 years ago • 0 comments

I struggled to write an assertion without creating custom matchers to assert on a nullable boolean, this is what i ended up with but I don't think it reads very well;

assertThat(capturedValue, false::equals)

Do you have any advice?

rossbeazley avatar Aug 08 '22 08:08 rossbeazley

i see i totally missed com.natpryce.hamkrest.CoreMatchers#equalTo

rossbeazley avatar Aug 19 '22 10:08 rossbeazley