AssertionFailedError

expect constructor()
actual constructor()

Constructs an AssertionFailedError with an empty message, no cause, and no expected/actual values.


expect constructor(message: String?)
actual constructor(message: String?)

Constructs an AssertionFailedError with a message, no cause, and no expected/actual values.

Parameters

message

the detail message; null or blank will be converted to the empty String


expect constructor(message: String?, cause: Throwable?)
actual constructor(message: String?, cause: Throwable?)

Constructs an AssertionFailedError with a message and a cause but without expected/actual values.

Parameters

message

the detail message; null or blank will be converted to the empty String

cause

the cause of the failure


expect constructor(message: String?, expected: Any?, actual: Any?)
actual constructor(message: String?, expected: Any?, actual: Any?)

Constructs an AssertionFailedError with a message and expected/actual values but without a cause.

Parameters

message

the detail message; null or blank will be converted to the empty String

expected

the expected value; may be null

actual

the actual value; may be null


expect constructor(message: String?, expected: Any?, actual: Any?, cause: Throwable?)
actual constructor(message: String?, expected: Any?, actual: Any?, cause: Throwable?)

Constructs an AssertionFailedError with a message, expected/actual values, and a cause.

Parameters

message

the detail message; null or blank will be converted to the empty String

expected

the expected value; may be null

actual

the actual value; may be null

cause

the cause of the failure