DefaultAsserter

class DefaultAsserter : Asserter (source)

Default Asserter implementation to avoid dependency on JUnit or TestNG.

Constructors

<init>

DefaultAsserter()

Default Asserter implementation to avoid dependency on JUnit or TestNG.

Functions

fail

fun fail(message: String?): Nothing

Fails the current test with the specified message.

Inherited Functions

assertEquals

open fun assertEquals(
    message: String?,
    expected: Any?,
    actual: Any?
): Unit

Asserts that the specified values are equal.

assertNotEquals

open fun assertNotEquals(
    message: String?,
    illegal: Any?,
    actual: Any?
): Unit

Asserts that the specified values are not equal.

assertNotNull

open fun assertNotNull(message: String?, actual: Any?): Unit

Asserts that the specified value is not null.

assertNotSame

open fun assertNotSame(
    message: String?,
    illegal: Any?,
    actual: Any?
): Unit

Asserts that the specified values are not the same instance.

assertNull

open fun assertNull(message: String?, actual: Any?): Unit

Asserts that the specified value is null.

assertSame

open fun assertSame(
    message: String?,
    expected: Any?,
    actual: Any?
): Unit

Asserts that the specified values are the same instance.

assertTrue

open fun assertTrue(
    lazyMessage: () -> String?,
    actual: Boolean
): Unit
open fun assertTrue(message: String?, actual: Boolean): Unit

Asserts that the specified value is true.