doc / ch.tutteli.atrium.assertions.builders / Descriptive / HoldsOption

HoldsOption

interface HoldsOption (source)

Option step which allows to specify DescriptiveAssertion.holds.

Properties

failing

abstract val failing: DescriptionOption<FinalStep>

Defines a constant failing assertion.

holding

abstract val holding: DescriptionOption<FinalStep>

Defines a constant holding assertion.

Functions

withTest

abstract fun withTest(test: () -> Boolean): DescriptionOption<FinalStep>

Uses the given test as DescriptiveAssertion.holds.

Companion Object Functions

create

fun create(): HoldsOption

Factory method to create the HoldsOption step in the process of building a descriptive assertion.