DefaultAsserter

Default Asserter implementation to avoid dependency on JUnit or TestNG.

Since Kotlin

1.0

Functions

Link copied to clipboard
open fun assertEquals(message: String?, expected: Any?, actual: Any?)

Asserts that the specified values are equal.

Since Kotlin 1.0
Link copied to clipboard
open fun assertNotEquals(message: String?, illegal: Any?, actual: Any?)

Asserts that the specified values are not equal.

Since Kotlin 1.0
Link copied to clipboard
open fun assertNotNull(message: String?, actual: Any?)

Asserts that the specified value is not null.

Since Kotlin 1.0
Link copied to clipboard
open fun assertNotSame(message: String?, illegal: Any?, actual: Any?)

Asserts that the specified values are not the same instance.

Since Kotlin 1.0
Link copied to clipboard
open fun assertNull(message: String?, actual: Any?)

Asserts that the specified value is null.

Since Kotlin 1.0
Link copied to clipboard
open fun assertSame(message: String?, expected: Any?, actual: Any?)

Asserts that the specified values are the same instance.

Since Kotlin 1.0
Link copied to clipboard
open fun assertTrue(lazyMessage: () -> String?, actual: Boolean)
open fun assertTrue(message: String?, actual: Boolean)

Asserts that the specified value is true.

Since Kotlin 1.0
Link copied to clipboard
open override fun fail(message: String?): Nothing

Fails the current test with the specified message.

Since Kotlin 1.0
open override fun fail(message: String?, cause: Throwable?): Nothing

Fails the current test with the specified message and cause exception.

Since Kotlin 1.4