AssertJ, even from Kotlin, is more verbose: // AssertJ assertThatThrownBy { // ... }.isInstanceOf(FooException::class.java) // kotlin.test ...
確定! 回上一頁