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

HoldsStep

interface HoldsStep : HoldsStep<RepresentationOnly.RepresentationStep> (source)

Step which allows to specify RepresentationOnlyAssertion.holds.

Inherited Properties

failing

abstract val failing: R

Defines a constant failing assertion.

holding

abstract val holding: R

Defines a constant holding assertion.

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

Companion Object Functions

create

fun create(): RepresentationOnly.HoldsStep

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