isInstanceOf
Asserts the value is an instance of the expected kotlin class. Both assertThat("test").isInstanceOf<String>()
and assertThat("test").isInstanceOf<Any>()
are successful.
See also
Asserts the value is an instance of the expected kotlin class. Both assertThat("test").isInstanceOf(String::class)
and assertThat("test").isInstanceOf(Any::class)
are successful.