I wanted to use Kotlintest assertions in my projec...
# kotlintest
v
I wanted to use Kotlintest assertions in my project instead of AssertJ, so I saw that
kotlintest-assertions
dependency is available at Maven Central and added it instead of pulling the whole
kotlintest-runner-junit5
. But then my test failed at this code with
Could not initialize class kotlin.jvm.internal.Reflection
Copy code
shouldThrowExactly<IllegalStateException> {
	service.login(user)
}.shouldHaveMessage("Request failed with response code 401")
So, turns out I can’t use just
kotlintest-assertions
if I only need assertions?