when switching from hamcrest to assertj i ran into...
# announcements
t
when switching from hamcrest to assertj i ran into a trouble with instanceOf:
Copy code
assertThat(validate("true").asBoolean().getOrThrow(), `is`(instanceOf(Boolean::class.java))) // old - hamcrest
assertThat(validate("true").asBoolean().getOrThrow()).isInstanceOf(Boolean::class.java) // new - assertj
outputs:
Copy code
Expecting:
  <true>
to be an instance of:
  <boolean>
but was instance of:
  <java.lang.Boolean>
does anyone know why?