doc / ch.tutteli.atrium.assertions / BasicAssertion / <init>

<init>

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

Constructor overload with an eager BasicAssertion.holds.

If the calculation for holds is expensive, then you might want to use the other overload with a lazy test.

Parameters

description - The BasicAssertion.description. representation - The BasicAssertion.expected. holds - Determines whether BasicAssertion.holds or not BasicAssertion(description: ITranslatable, expected: Any, test: () -> Boolean)

Constructor overload with a lazy BasicAssertion.holds.

Parameters

description - The BasicAssertion.description. expected - The BasicAssertion.expected. test - Lazily determines whether BasicAssertion.holds.

Constructor
Constructor overload with a lazy BasicAssertion.holds.