← Docs
kotlin.test / kotlin.test.junit5 / JUnit5Asserter / fail

fail

JUnit5
1.0
fun fail ( message : String ? ) : Nothing
(source)
fun fail ( message : String ? , cause : Throwable ? ) : Nothing
(source)
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .