tipsy
02/03/2019, 12:37 PMassertThat(validate("true").asBoolean().getOrThrow(), `is`(instanceOf(Boolean::class.java))) // old - hamcrest
assertThat(validate("true").asBoolean().getOrThrow()).isInstanceOf(Boolean::class.java) // new - assertj
outputs:
Expecting:
<true>
to be an instance of:
<boolean>
but was instance of:
<java.lang.Boolean>
does anyone know why?