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

<init>

BasicDescriptiveAssertion(description: Translatable, representation: Any, holds: Boolean)

Constructor overload with an eager BasicDescriptiveAssertion.holds.

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

Parameters

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

Constructor overload with a lazy BasicDescriptiveAssertion.holds.

Parameters

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

Constructor
Constructor overload with a lazy BasicDescriptiveAssertion.holds.