EntryPointStepInternal

Sole purpose of this interface is to hide EntryPointStepLogic from newcomers which usually do not have to deal with this type and to keep the API clean.

Moreover, this keeps the API clean and does not pollute it with things like times, containsBuilder etc.

See https://github.com/robstoll/atrium-roadmap/wiki/Requirements#personas for more information about the personas.

Inheritors

Properties

Link copied to clipboard

Entry point to the logic level of Atrium -- which is one level deeper than the API -- within the building process of a sophisticated contains assertion for Iterable.

Link copied to clipboard

The AssertionContainer from which this building process started and to which the resulting Assertion should be appended.

Link copied to clipboard
abstract val converter: (T) -> Iterable<E>

The converter which shall be used to turn the subject of this expectation into an Iterable of type E.

Link copied to clipboard
abstract val searchBehaviour: S

The chosen SearchBehaviour.

Functions

Link copied to clipboard
fun <E, T : IterableLike, S : IterableLikeContains.SearchBehaviour> IterableLikeContains.EntryPointStepLogic<E, T, S>.atMostCheckerStep(times: Int, nameContainsNotFun: String, atMostCall: (Int) -> String, atLeastCall: (Int) -> String, exactlyCall: (Int) -> String): AtMostCheckerStep<E, T, S>
Link copied to clipboard
Link copied to clipboard
inline fun <T> IterableLikeContains.EntryPointStepLogic<*, *, *>.toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>

Transforms the given iterableLike to Pair<T, Array<out T>> with the intention that it can be easily used for a function requiring T, vararg T.