atrium-impl-common / ch.tutteli.atrium.assertions / OneMessageAssertion

OneMessageAssertion

class OneMessageAssertion : IOneMessageAssertion

A default implementation for IOneMessageAssertion.

Constructors

<init>

OneMessageAssertion(description: ITranslatable, representation: Any, holds: Boolean)

Constructor overload without a lazy Message.holds.

OneMessageAssertion(description: ITranslatable, representation: Any, check: () -> Boolean)

Properties

message

val message: Message

The message of this assertion.

Functions

toString

fun toString(): String

Delegates to message's Message.toString.

Inherited Functions

holds

open fun holds(): Boolean

Holds if its message holds.