S.
04/04/2022, 6:19 PMNotFound
or BadRequest
since they throw io.ktor.client.plugins.ClientRequestException
?
so this below doesn't work, only way is to do the checks on the exception's message it seems
val response = client.get("api/v1/words/x")
response shouldHaveStatus HttpStatusCode.BadRequest
response.bodyAsText() shouldBe INVALID_ID
S.
04/04/2022, 6:21 PMNoContent
?Aleksei Tirman [JB]
04/04/2022, 6:24 PMfalse
to the expectSuccess
property in the client’s configuration to test them without an exception.S.
04/04/2022, 6:26 PM