FeatureExpectOptionsChooser

Helper lambda to specify FeatureExpectOptions via convenience methods.

Calling multiple times the same method overrides the previously defined value.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun withDescription(description: Translatable)

Uses the given description as custom description instead of the previously defined description.

open fun withDescription(description: String)

Wraps the given description into an Untranslatable and passes it to the overload which expects a Translatable -- this is then used as custom description instead of the previously defined description.

Link copied to clipboard
abstract fun withRepresentation(representationProvider: (R) -> Any)

Uses the given representationProvider to retrieve a representation which can be based on the current subject where this provided representation is used as new representation of the subject instead of the representation that has been defined so far (which defaults to the subject itself).

open fun withRepresentation(textRepresentation: String)

Wraps the given textRepresentation into a Text and uses it as representation of the subject instead of the representation that has been defined so far (which defaults to the subject itself).