doc / ch.tutteli.atrium.assertions.basic.contains.builders

Package ch.tutteli.atrium.assertions.basic.contains.builders

Contains @Deprecated classes/interfaces/functions, use the ones from package creating, will all be removed with 1.0.0

Types

ContainsBuilder

abstract class ContainsBuilder<out T : Any, out S : SearchBehaviour> : Builder<T, S>

Represents the deprecated base class for builders representing the entry point of the process of building a sophisticated contains assertion.

ContainsCheckerBuilder

interface ContainsCheckerBuilder<out T : Any, out S : SearchBehaviour, out C : Checker, out B : Builder<T, S>> : CheckerOption<T, S, C, B>

Represents the deprecated base class for builders representing a checking step in the process of building a sophisticated contains assertion.

Functions

validateAtMost

fun validateAtMost(times: Int, atMostCall: (Int) -> String, atLeastCall: (Int) -> String, exactlyCall: (Int) -> String): Unit

Validates that times is not 1; throws an IllegalArgumentException otherwise, pointing the user to use the given exactlyCall instead of the given atMostCall.

validateButAtMost

fun validateButAtMost(atLeastTimes: Int, butAtMostTimes: Int, atLeastButAtMostCall: (Int, Int) -> String, atLeastCall: (Int) -> String, butAtMostCall: (Int) -> String, exactlyCall: (Int) -> String): Unit

Validates that atLeastTimes is not equal to or greater than butAtMostTimes; throws IllegalArgumentException otherwise, pointing the user to use the given exactlyCall in case atLeastTimes equals butAtMostTimes.