
kotlin.test.DefaultAsserter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-test Show documentation
Show all versions of kotlin-test Show documentation
Kotlin Test Multiplatform library
package kotlin.test
/**
* Default [Asserter] implementation to avoid dependency on JUnit or TestNG.
*/
class DefaultAsserter() : Asserter {
override fun fail(message: String?): Nothing {
if (message == null)
throw AssertionError()
else
throw AssertionError(message)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy