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.representation.

holds - Determines whether BasicDescriptiveAssertion.holds or not

BasicDescriptiveAssertion(description: Translatable, representation: Any, test: () -> Boolean)

Constructor overload with a lazy BasicDescriptiveAssertion.holds.

Parameters

description - The BasicDescriptiveAssertion.description.

representation - The BasicDescriptiveAssertion.representation.

test - Lazily determines whether BasicDescriptiveAssertion.holds.

Constructor
Constructor overload with a lazy BasicDescriptiveAssertion.holds.