Colton Idle
02/23/2023, 3:09 PMephemient
02/23/2023, 3:13 PMTruth.assertThat(...).isInstanceOf(...)
but IMO other assertion libraries like Kluent are more fluent to use from Kotlin, with contracts and allColton Idle
02/23/2023, 3:18 PMephemient
02/23/2023, 3:20 PMColton Idle
02/23/2023, 3:38 PMsindrenm
02/23/2023, 3:56 PMsindrenm
02/23/2023, 3:56 PMKlitos Kyriacou
02/23/2023, 4:32 PMshouldNotThrow { ... }
(or your assertion library's equivalent) around your code.ephemient
02/23/2023, 4:54 PMsindrenm
02/23/2023, 5:00 PMtry { ... } catch (SomeException) { fail("Failed because ...") }
.