doc / ch.tutteli.atrium.logic.creating.iterablelike.contains.reporting / InOrderOnlyReportingOptions

InOrderOnlyReportingOptions

interface InOrderOnlyReportingOptions : OnlyReportingOptions (source)

Reporting options for toContain.inOrder.only expectation functions.

Since
0.17.0

Properties

numberOfElementsInSummary

abstract val numberOfElementsInSummary: Int

Indicates until how many elements the summary view shall be used. If there are more elements in the IterableLike, then only failing expectations shall be shown.

Inherited Properties

maxNumberOfExpectedElementsForSummary

abstract val maxNumberOfExpectedElementsForSummary: Int

Indicates until how many expected elements the summary view shall be used. If there are more expected elements, then only failing expectations shall be shown.

Functions

showOnlyFailingIfMoreElementsThan

abstract fun showOnlyFailingIfMoreElementsThan(number: Int): Unit

Show only failing expectations, i.e. elements which do not match, instead of a summary (which lists also successful expectations/elements) if there are more than number elements.

Inherited Functions

showAlwaysSummary

open fun showAlwaysSummary(): Unit

Always shows a summary where both failing and successful expectations are shown, same as OnlyReportingOptions.showOnlyFailingIfMoreExpectedElementsThan(Int.MAX_VALUE).

showOnlyFailing

open fun showOnlyFailing(): Unit

Always shows only failing expectations, same as OnlyReportingOptions.showOnlyFailingIfMoreExpectedElementsThan(0)

showOnlyFailingIfMoreExpectedElementsThan

abstract fun showOnlyFailingIfMoreExpectedElementsThan(number: Int): Unit

Show only failing expectations, i.e. elements which do not match, instead of a summary (which lists also successful expectations/elements) if there are more than number expected elements.