doc / ch.tutteli.atrium.assertions.builders.common / HoldsStep

HoldsStep

interface HoldsStep<R> (source)

Step which allows to specify RepresentationOnlyAssertion.holds.

Properties

failing

abstract val failing: R

Defines a constant failing assertion.

holding

abstract val holding: R

Defines a constant holding assertion.

Functions

withTest

abstract fun withTest(test: () -> Boolean): R

Uses the given test as Assertion.holds.

abstract fun <T> withTest(expect: Expect<T>, test: (T) -> Boolean): R

Uses the given test as Assertion.holds based on the subject provided by subjectProvider.

Inheritors

HoldsStep

interface HoldsStep : HoldsStep<RepresentationOnly.RepresentationStep>

Step which allows to specify RepresentationOnlyAssertion.holds.