Contains API which provides a pure fluent API in English and which has its design focus on usability in conjunction with code completion.
class Entries<T : Any> : Group<(Expect<T>.() -> Unit)?>, VarArgHelper<(Expect<T>.() -> Unit)?>
Parameter object to express a Group of identification lambdas. |
|
class Entry<T : Any> : Group<(Expect<T>.() -> Unit)?>
Parameter object to express a Group with a single identification lambda. |
|
data class KeyValue<out K, V : Any>
Parameter object to express a key/value Pair whose value type is a nullable lambda with an
Expect receiver, which means one can either pass a lambda or |
|
data class Value<out T> : Group<T>
Represents a Group with a single value. |
|
class Values<out T> : Group<T>, VarArgHelper<T>
Represents a Group of multiple values. |
annotation class ExperimentalWithOptions |
val <T> Expect<T>.and: Expect<T>
Can be used to separate single assertions. |
|
val <T : CharSequence> Expect<T>.contains: CharSequenceContains.EntryPointStep<T, NoOpSearchBehaviour>
Starts a sophisticated |
|
val <T : CharSequence> Expect<T>.containsNot: NotCheckerStep<T, NotSearchBehaviour>
Starts a sophisticated |
|
val Expect<LocalDate>.day: Expect<Int>
Creates an Expect for the property LocalDate.dayOfMonth of the subject of val Expect<LocalDateTime>.day: Expect<Int>
Creates an Expect for the property LocalDateTime.dayOfMonth
of the subject of val Expect<ZonedDateTime>.day: Expect<Int>
Creates an Expect for the property ZonedDateTime.dayOfMonth
of the subject of |
|
val Expect<LocalDate>.dayOfWeek: Expect<DayOfWeek>
Creates an Expect for the property LocalDate.getDayOfWeek of the subject of val Expect<LocalDateTime>.dayOfWeek: Expect<DayOfWeek>
Creates an Expect for the property LocalDateTime.dayOfWeek
of the subject of val Expect<ZonedDateTime>.dayOfWeek: Expect<DayOfWeek>
Creates an Expect for the property ZonedDatetime.dayOfWeek
of the subject of |
|
val <T : Path> Expect<T>.extension: Expect<String>
Creates an Expect for the property Path.extension
(provided via niok) of the subject of |
|
val <T : Path> Expect<T>.fileName: Expect<String>
Creates an Expect for the property Path.fileNameAsString
(provided via niok) of the subject of |
|
val <T : Path> Expect<T>.fileNameWithoutExtension: Expect<String>
Creates an Expect for the property Path.fileNameWithoutExtension
(provided via niok) of the subject of |
|
val <K, T : Pair<K, *>> Expect<T>.first: Expect<K>
Creates an Expect for the property Pair.first of the subject of |
|
val <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlySearchBehaviour>.grouped: IterableLikeContains.EntryPointStep<E, T, InOrderOnlyGroupedSearchBehaviour>
Defines that the IterableLike contains |
|
val <T : CharSequence> CharSequenceContains.EntryPointStep<T, NoOpSearchBehaviour>.ignoringCase: CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>
Defines that the v behaviour val <T : CharSequence> NotCheckerStep<T, NotSearchBehaviour>.ignoringCase: NotCheckerStep<T, IgnoringCaseSearchBehaviour>
Defines that the search behaviour |
|
val <E, T> IterableLikeContains.EntryPointStep<E, T, NoOpSearchBehaviour>.inAnyOrder: IterableLikeContains.EntryPointStep<E, T, InAnyOrderSearchBehaviour>
Defines that the search behaviour "find entries val <K, V, T> MapLikeContains.EntryPointStep<K, V, T, NoOpSearchBehaviour>.inAnyOrder: MapLikeContains.EntryPointStep<K, V, T, InAnyOrderSearchBehaviour>
Defines that the search behaviour "find entries |
|
val <E, T> IterableLikeContains.EntryPointStep<E, T, NoOpSearchBehaviour>.inOrder: IterableLikeContains.EntryPointStep<E, T, InOrderSearchBehaviour>
Defines that the search behaviour "find entries val <K, V, T> MapLikeContains.EntryPointStep<K, V, T, NoOpSearchBehaviour>.inOrder: MapLikeContains.EntryPointStep<K, V, T, InOrderSearchBehaviour>
Defines that the search behaviour "find entries |
|
val <K, T : Entry<K, *>> Expect<T>.key: Expect<K>
Creates an Expect for the property Map.Entry.key of the subject of |
|
val <K, T : Map<out K, *>> Expect<T>.keys: Expect<Set<K>>
Creates an Expect for the property Map.keys of the subject of |
|
val <T : Throwable> Expect<T>.message: Expect<String>
Expects that the property Throwable.message of the subject of |
|
val Expect<LocalDate>.month: Expect<Int>
Creates an Expect for the property LocalDate.monthValue of the subject of val Expect<LocalDateTime>.month: Expect<Int>
Creates an Expect for the property LocalDateTime.monthValue
of the subject of val Expect<ZonedDateTime>.month: Expect<Int>
Creates an Expect for the property ZonedDateTime.monthValue
of the subject of |
|
val <E, T> IterableLikeContains.EntryPointStep<E, T, InAnyOrderSearchBehaviour>.only: IterableLikeContains.EntryPointStep<E, T, InAnyOrderOnlySearchBehaviour>
Defines that the constraint " val <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderSearchBehaviour>.only: IterableLikeContains.EntryPointStep<E, T, InOrderOnlySearchBehaviour>
Defines that the constraint " val <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderSearchBehaviour>.only: MapLikeContains.EntryPointStep<K, V, T, InAnyOrderOnlySearchBehaviour>
Defines that the constraint " val <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InOrderSearchBehaviour>.only: MapLikeContains.EntryPointStep<K, V, T, InOrderOnlySearchBehaviour>
Defines that the constraint " |
|
val <T : Path> Expect<T>.parent: Expect<Path>
Expects that this Path has a parent and creates an Expect for it, so that further fluent calls are assertions about it. |
|
val <V, T : Pair<*, V>> Expect<T>.second: Expect<V>
Creates an Expect for the property Pair.second of the subject of |
|
val <T : Collection<*>> Expect<T>.size: Expect<Int>
Creates an Expect for the property Collection.size of the subject of |
|
val <V, T : Entry<*, V>> Expect<T>.value: Expect<V>
Creates an Expect for the property Map.Entry.value of the subject of |
|
val <V, T : Map<*, V>> Expect<T>.values: Expect<Collection<V>>
Creates an Expect for the property Map.values of the subject of |
|
val <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlyGroupedSearchBehaviour>.within: IterableLikeContains.EntryPointStep<E, T, InOrderOnlyGroupedWithinSearchBehaviour>
A filler word to emphasis that the next step defines the order within expected groups of values. |
|
val Expect<LocalDate>.year: Expect<Int>
Creates an Expect for the property LocalDate.year of the subject of val Expect<LocalDateTime>.year: Expect<Int>
Creates an Expect for the property LocalDateTime.year[LocalDateTime.getYear of the subject of val Expect<ZonedDateTime>.year: Expect<Int>
Creates an Expect for the property ZonedDateTime.year of the subject of |
fun <E : Any, T : Iterable<E?>> Expect<T>.all(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of |
|
infix fun <T> Expect<T>.and(assertionCreator: Expect<T>.() -> Unit): Expect<T>
Can be used to create a group of sub assertions when using the fluent API. |
|
fun <E : Any, T : Iterable<E?>> Expect<T>.any(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of |
|
fun <K, V, T : Map<out K, V>> Expect<T>.asEntries(): Expect<Set<Entry<K, V>>>
Turns fun <K, V, T : Map<out K, V>> Expect<T>.asEntries(assertionCreator: Expect<Set<Entry<K, V>>>.() -> Unit): Expect<T>
Turns |
|
fun <E, T : Sequence<E>> Expect<T>.asIterable(): Expect<Iterable<E>>
Turns fun <E, T : Sequence<E>> Expect<T>.asIterable(assertionCreator: Expect<Iterable<E>>.() -> Unit): Expect<T>
Expects that the subject of |
|
fun <E> Expect<out Array<out E>>.asList(): Expect<List<E>>
Turns fun <E> Expect<Array<E>>.asList(assertionCreator: Expect<List<E>>.() -> Unit): Expect<Array<E>> fun Expect<ByteArray>.asList(assertionCreator: Expect<List<Byte>>.() -> Unit): Expect<ByteArray> fun Expect<CharArray>.asList(assertionCreator: Expect<List<Char>>.() -> Unit): Expect<CharArray> fun Expect<ShortArray>.asList(assertionCreator: Expect<List<Short>>.() -> Unit): Expect<ShortArray> fun Expect<IntArray>.asList(assertionCreator: Expect<List<Int>>.() -> Unit): Expect<IntArray> fun Expect<LongArray>.asList(assertionCreator: Expect<List<Long>>.() -> Unit): Expect<LongArray> fun Expect<FloatArray>.asList(assertionCreator: Expect<List<Float>>.() -> Unit): Expect<FloatArray> fun Expect<DoubleArray>.asList(assertionCreator: Expect<List<Double>>.() -> Unit): Expect<DoubleArray> fun Expect<BooleanArray>.asList(assertionCreator: Expect<List<Boolean>>.() -> Unit): Expect<BooleanArray> fun <E, T : Iterable<E>> Expect<T>.asList(assertionCreator: Expect<List<E>>.() -> Unit): Expect<T>
Expects that the subject of fun Expect<ByteArray>.asList(): Expect<List<Byte>>
Turns fun Expect<CharArray>.asList(): Expect<List<Char>>
Turns fun Expect<ShortArray>.asList(): Expect<List<Short>>
Turns fun Expect<IntArray>.asList(): Expect<List<Int>>
Turns fun Expect<LongArray>.asList(): Expect<List<Long>>
Turns fun Expect<FloatArray>.asList(): Expect<List<Float>>
Turns fun Expect<DoubleArray>.asList(): Expect<List<Double>>
Turns fun Expect<BooleanArray>.asList(): Expect<List<Boolean>>
Turns fun <E, T : Iterable<E>> Expect<T>.asList(): Expect<List<E>>
Turns |
|
fun <T : File> Expect<T>.asPath(): Expect<Path>
Turns fun <T : File> Expect<T>.asPath(assertionCreator: Expect<Path>.() -> Unit): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStep<T, S>.atLeast(times: Int): AtLeastCheckerStep<T, S>
Restricts a fun <E, T, S : InAnyOrderSearchBehaviour> IterableLikeContains.EntryPointStep<E, T, S>.atLeast(times: Int): AtLeastCheckerStep<E, T, S>
Restricts a |
|
fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStep<T, S>.atMost(times: Int): AtMostCheckerStep<T, S>
Restricts a fun <E, T, S : InAnyOrderSearchBehaviour> IterableLikeContains.EntryPointStep<E, T, S>.atMost(times: Int): AtMostCheckerStep<E, T, S>
Restricts a |
|
fun <T> Expect<T>.because(reason: String, assertionCreator: Expect<T>.() -> Unit): Expect<T>
Allows to state a reason for one or multiple assertions for the current subject. |
|
fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> AtLeastCheckerStep<T, S>.butAtMost(times: Int): ButAtMostCheckerStep<T, S>
Restricts a fun <E, T, S : InAnyOrderSearchBehaviour> AtLeastCheckerStep<E, T, S>.butAtMost(times: Int): ButAtMostCheckerStep<E, T, S>
Restricts a |
|
fun <TExpected : Throwable> Expect<out Throwable>.cause(): Expect<TExpected>
Expects that the property Throwable.cause of the subject is a TExpected (the same type or a sub-type), creates an Expect of the TExpected type for it and returns it. fun <TExpected : Throwable> Expect<out Throwable>.cause(assertionCreator: Expect<TExpected>.() -> Unit): Expect<TExpected>
Expects that the property Throwable.cause of the subject is a TExpected (the same type or a sub-type) and holds all assertions the given assertionCreator creates for it and returns this assertion container. |
|
fun <T : CharSequence> Expect<T>.contains(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
Expects that the subject of fun <E, T : Iterable<E>> Expect<T>.contains(expected: E, vararg otherExpected: E): Expect<T>
Expects that the subject of fun <E : Any, T : Iterable<E?>> Expect<T>.contains(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of fun <E : Any, T : Iterable<E?>> Expect<T>.contains(assertionCreatorOrNull: (Expect<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of fun <K, V, T : Map<out K, V>> Expect<T>.contains(keyValuePair: Pair<K, V>, vararg otherPairs: Pair<K, V>): Expect<T>
Expects that the subject of fun <K, V : Any, T : Map<out K, V?>> Expect<T>.contains(keyValue: KeyValue<K, V>, vararg otherKeyValues: KeyValue<K, V>): Expect<T>
Expects that the subject of |
|
fun <E, T : Iterable<E>> Expect<T>.containsElementsOf(expectedIterableLike: IterableLike): Expect<T>
Expects that the subject of |
|
fun <K, V : Any, T : Map<out K, V?>> Expect<T>.containsEntriesOf(mapLike: MapLike): Expect<T>
Expects that the subject of |
|
fun <E, T : Iterable<E>> Expect<T>.containsExactly(expected: E, vararg otherExpected: E): Expect<T>
Expects that the subject of fun <E : Any, T : Iterable<E?>> Expect<T>.containsExactly(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of fun <E : Any, T : Iterable<E?>> Expect<T>.containsExactly(assertionCreatorOrNull: (Expect<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of |
|
fun <E, T : Iterable<E>> Expect<T>.containsExactlyElementsOf(expectedIterableLike: IterableLike): Expect<T>
Expects that the subject of |
|
fun <K, T : Map<out K, *>> Expect<T>.containsKey(key: K): Expect<T>
Expects that the subject of |
|
fun <E, T : Iterable<E>> Expect<T>.containsNoDuplicates(): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.containsNot(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
Expects that the subject of fun <E, T : Iterable<E>> Expect<T>.containsNot(expected: E, vararg otherExpected: E): Expect<T>
Expects that the subject of |
|
fun <K, T : Map<out K, *>> Expect<T>.containsNotKey(key: K): Expect<T>
Expects that the subject of |
|
fun <K, V, T : Map<out K, V>> Expect<T>.containsOnly(keyValuePair: Pair<K, V>, vararg otherPairs: Pair<K, V>): Expect<T>
Expects that the subject of fun <K, V : Any, T : Map<out K, V?>> Expect<T>.containsOnly(keyValue: KeyValue<K, V>, vararg otherKeyValues: KeyValue<K, V>): Expect<T>
Expects that the subject of |
|
fun <K, V : Any, T : Map<out K, V?>> Expect<T>.containsOnlyEntriesOf(mapLike: MapLike): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.containsRegex(pattern: String, vararg otherPatterns: String): Expect<T> fun <T : CharSequence> Expect<T>.containsRegex(pattern: Regex, vararg otherPatterns: Regex): Expect<T>
Expects that the subject of |
|
fun Expect<LocalDate>.day(assertionCreator: Expect<Int>.() -> Unit): Expect<LocalDate>
Expects that the property LocalDate.dayOfMonth of the subject of fun Expect<LocalDateTime>.day(assertionCreator: Expect<Int>.() -> Unit): Expect<LocalDateTime>
Expects that the property LocalDateTime.dayOfMonth of the subject of fun Expect<ZonedDateTime>.day(assertionCreator: Expect<Int>.() -> Unit): Expect<ZonedDateTime>
Expects that the property ZonedDateTime.dayOfMonth of the subject of |
|
fun Expect<LocalDate>.dayOfWeek(assertionCreator: Expect<DayOfWeek>.() -> Unit): Expect<LocalDate>
Expects that the property LocalDate.getDayOfWeek of the subject of fun Expect<LocalDateTime>.dayOfWeek(assertionCreator: Expect<DayOfWeek>.() -> Unit): Expect<LocalDateTime>
Expects that the property LocalDateTime.dayOfWeekof the subject of fun Expect<ZonedDateTime>.dayOfWeek(assertionCreator: Expect<DayOfWeek>.() -> Unit): Expect<ZonedDateTime>
Expects that the property ZonedDatetime.dayOfWeek of the subject of |
|
fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.elementsOf(expectedIterableLike: IterableLike): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.CheckerStep<T, IgnoringCaseSearchBehaviour>.elementsOf(expectedIterableLike: IterableLike): Expect<T> fun <T : CharSequence> CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>.elementsOf(expectedIterableLike: IterableLike): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.CheckerStep<E, T, InAnyOrderSearchBehaviour>.elementsOf(expectedIterableLike: IterableLike): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.EntryPointStep<E, T, InAnyOrderOnlySearchBehaviour>.elementsOf(expectedIterableLike: IterableLike): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlySearchBehaviour>.elementsOf(expectedIterableLike: IterableLike): Expect<T>
Finishes the specification of the sophisticated |
|
fun <T : CharSequence> Expect<T>.endsNotWith(expected: CharSequence): Expect<T> fun <T : CharSequence> Expect<T>.endsNotWith(expected: Char): Expect<T>
Expects that the subject of fun <T : Path> Expect<T>.endsNotWith(expected: Path): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.endsWith(expected: CharSequence): Expect<T> fun <T : CharSequence> Expect<T>.endsWith(expected: Char): Expect<T>
Expects that the subject of fun <T : Path> Expect<T>.endsWith(expected: Path): Expect<T>
Expects that the subject of |
|
fun <E : Any, T> IterableLikeContains.CheckerStep<out E?, T, InAnyOrderSearchBehaviour>.entries(assertionCreatorOrNull: (Expect<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Expect<E>.() -> Unit)?): Expect<T>
Finishes the specification of the sophisticated fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InAnyOrderOnlySearchBehaviour>.entries(assertionCreatorOrNull: (Expect<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Expect<E>.() -> Unit)?): Expect<T>
Finishes the specification of the sophisticated fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InOrderOnlySearchBehaviour>.entries(assertionCreatorOrNull: (Expect<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Expect<E>.() -> Unit)?): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderSearchBehaviour>.entries(keyValuePair: Pair<K, V>, vararg otherPairs: Pair<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V : Any, T> MapLikeContains.EntryPointStep<K, out V?, T, InAnyOrderSearchBehaviour>.entries(keyValue: KeyValue<K, V>, vararg otherKeyValues: KeyValue<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderOnlySearchBehaviour>.entries(keyValuePair: Pair<K, V>, vararg otherPairs: Pair<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V : Any, T> MapLikeContains.EntryPointStep<K, out V?, T, InAnyOrderOnlySearchBehaviour>.entries(keyValue: KeyValue<K, V>, vararg otherKeyValues: KeyValue<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InOrderOnlySearchBehaviour>.entries(keyValuePair: Pair<K, V>, vararg otherPairs: Pair<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V : Any, T> MapLikeContains.EntryPointStep<K, out V?, T, InOrderOnlySearchBehaviour>.entries(keyValue: KeyValue<K, V>, vararg otherKeyValues: KeyValue<K, V>): Expect<T>
Finishes the specification of the sophisticated |
|
fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderSearchBehaviour>.entriesOf(expectedMapLike: MapLike): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderOnlySearchBehaviour>.entriesOf(expectedMapLike: MapLike): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InOrderOnlySearchBehaviour>.entriesOf(expectedMapLike: MapLike): Expect<T>
Finishes the specification of the sophisticated |
|
fun <E : Any, T> IterableLikeContains.CheckerStep<out E?, T, InAnyOrderSearchBehaviour>.entry(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Finishes the specification of the sophisticated fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InAnyOrderOnlySearchBehaviour>.entry(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T> fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InOrderOnlySearchBehaviour>.entry(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderSearchBehaviour>.entry(keyValuePair: Pair<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V : Any, T> MapLikeContains.EntryPointStep<K, out V?, T, InAnyOrderSearchBehaviour>.entry(keyValue: KeyValue<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InAnyOrderOnlySearchBehaviour>.entry(keyValuePair: Pair<K, V>): Expect<T> fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, InOrderOnlySearchBehaviour>.entry(keyValuePair: Pair<K, V>): Expect<T>
Finishes the specification of the sophisticated fun <K, V : Any, T> MapLikeContains.EntryPointStep<K, out V?, T, InAnyOrderOnlySearchBehaviour>.entry(keyValue: KeyValue<K, V>): Expect<T> fun <K, V : Any, T> MapLikeContains.EntryPointStep<K, out V?, T, InOrderOnlySearchBehaviour>.entry(keyValue: KeyValue<K, V>): Expect<T>
Finishes the specification of the sophisticated |
|
fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStep<T, S>.exactly(times: Int): ExactlyCheckerStep<T, S>
Restricts a fun <E, T, S : InAnyOrderSearchBehaviour> IterableLikeContains.EntryPointStep<E, T, S>.exactly(times: Int): ExactlyCheckerStep<E, T, S>
Restricts a |
|
fun <T : Path> Expect<T>.exists(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.existsNot(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.extension(assertionCreator: Expect<String>.() -> Unit): Expect<T>
Expects that the property Path.extension
(provided via niok) of the subject of |
|
fun <T, R> Expect<T>.feature(property: KProperty1<in T, R>): FeatureExpect<T, R>
Extracts the property out of the current subject of fun <T, R> Expect<T>.feature(property: KProperty1<in T, R>, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the property out of the current subject of fun <T, R> Expect<T>.feature(f: KFunction1<T, R>): FeatureExpect<T, R>
Extracts the value which is returned when calling f on the current subject of fun <T, R> Expect<T>.feature(f: KFunction1<T, R>, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the value which is returned when calling f on the current subject of fun <T, A1, R> Expect<T>.feature(f: KFunction2<T, A1, R>, a1: A1): FeatureExpect<T, R>
Extracts the value which is returned when calling f with argument a1
on the current subject of fun <T, A1, R> Expect<T>.feature(f: KFunction2<T, A1, R>, a1: A1, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the value which is returned when calling f with argument a1
on the current subject of fun <T, A1, A2, R> Expect<T>.feature(f: KFunction3<T, A1, A2, R>, a1: A1, a2: A2): FeatureExpect<T, R>
Extracts the value which is returned when calling f with arguments a1, a2
on the current subject of fun <T, A1, A2, R> Expect<T>.feature(f: KFunction3<T, A1, A2, R>, a1: A1, a2: A2, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the value which is returned when calling f with argument a1, a2
on the current subject of fun <T, A1, A2, A3, R> Expect<T>.feature(f: KFunction4<T, A1, A2, A3, R>, a1: A1, a2: A2, a3: A3): FeatureExpect<T, R>
Extracts the value which is returned when calling f with arguments a1, a2, a3
on the current subject of fun <T, A1, A2, A3, R> Expect<T>.feature(f: KFunction4<T, A1, A2, A3, R>, a1: A1, a2: A2, a3: A3, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the value which is returned when calling f with argument a1, a2, a3
on the current subject of fun <T, A1, A2, A3, A4, R> Expect<T>.feature(f: KFunction5<T, A1, A2, A3, A4, R>, a1: A1, a2: A2, a3: A3, a4: A4): FeatureExpect<T, R>
Extracts the value which is returned when calling f with arguments a1, a2, a3, a4
on the current subject of fun <T, A1, A2, A3, A4, R> Expect<T>.feature(f: KFunction5<T, A1, A2, A3, A4, R>, a1: A1, a2: A2, a3: A3, a4: A4, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the value which is returned when calling f with argument a1, a2, a3, a4
on the current subject of fun <T, A1, A2, A3, A4, A5, R> Expect<T>.feature(f: KFunction6<T, A1, A2, A3, A4, A5, R>, a1: A1, a2: A2, a3: A3, a4: A4, a5: A5): FeatureExpect<T, R>
Extracts the value which is returned when calling f with arguments a1, a2, a3, a4, a5
on the current subject of fun <T, A1, A2, A3, A4, A5, R> Expect<T>.feature(f: KFunction6<T, A1, A2, A3, A4, A5, R>, a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts the value which is returned when calling f with argument a1, a2, a3, a4, a5
on the current subject of fun <T, R> Expect<T>.feature(description: String, provider: T.() -> R): FeatureExpect<T, R>
Extracts a feature out of the current subject of fun <T, R> Expect<T>.feature(description: String, provider: T.() -> R, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts a feature out of the current subject of fun <T, R> Expect<T>.feature(provider: MetaFeatureOption<T>.(T) -> MetaFeature<R>): FeatureExpect<T, R>
Extracts a feature out of the current subject of fun <T, R> Expect<T>.feature(provider: MetaFeatureOption<T>.(T) -> MetaFeature<R>, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts a feature out of the current subject of |
|
fun <T : Path> Expect<T>.fileName(assertionCreator: Expect<String>.() -> Unit): Expect<T>
Expects that the property Path.fileNameAsString
(provided via niok) of the subject of |
|
fun <T : Path> Expect<T>.fileNameWithoutExtension(assertionCreator: Expect<String>.() -> Unit): Expect<T>
Expects that the property Path.fileNameWithoutExtension
(provided via niok)
of the subject of |
|
fun <K, V, T : Pair<K, V>> Expect<T>.first(assertionCreator: Expect<K>.() -> Unit): Expect<T>
Expects that the property Pair.first of the subject of |
|
fun <E, T : List<E>> Expect<T>.get(index: Int): Expect<E>
Expects that the given index is within the bounds of the subject of fun <E, T : List<E>> Expect<T>.get(index: Int, assertionCreator: Expect<E>.() -> Unit): Expect<T>
Expects that the given index is within the bounds of the subject of |
|
fun <K, V, T : Map<out K, V>> Expect<T>.getExisting(key: K): Expect<V>
Expects that the subject of fun <K, V, T : Map<out K, V>> Expect<T>.getExisting(key: K, assertionCreator: Expect<V>.() -> Unit): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.hasDirectoryEntry(entry: String, vararg otherEntries: String): Expect<T>
Expects that the subject of |
|
fun <E, T : Iterable<E>> Expect<T>.hasNext(): Expect<T>
Expects that the subject of |
|
fun <E, T : Iterable<E>> Expect<T>.hasNotNext(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.hasSameBinaryContentAs(targetPath: Path): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.hasSameTextualContentAs(targetPath: Path, sourceCharset: Charset = Charsets.UTF_8, targetCharset: Charset = Charsets.UTF_8): Expect<T>
Expects that the subject of |
|
fun <T : Collection<*>> Expect<T>.hasSize(expected: Int): Expect<T>
Expects that the subject of |
|
fun <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<E>, secondGroup: Group<E>, vararg otherExpectedGroups: Group<E>): Expect<T>
Finishes the specification of the sophisticated fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<(Expect<E>.() -> Unit)?>, secondGroup: Group<(Expect<E>.() -> Unit)?>, vararg otherExpectedGroups: Group<(Expect<E>.() -> Unit)?>): Expect<T>
Finishes the specification of the sophisticated |
|
fun <TSub : Any> Expect<*>.isA(): Expect<TSub>
Expects that the subject of fun <TSub : Any> Expect<*>.isA(assertionCreator: Expect<TSub>.() -> Unit): Expect<TSub>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isAbsolute(): Expect<T>
Expects that the subject of |
|
fun <T : ChronoLocalDate> Expect<T>.isAfter(expected: ChronoLocalDate): Expect<T>
Expects that the subject of fun <T : ChronoLocalDate> Expect<T>.isAfter(expected: String): Expect<T>
Expects that the subject of fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.isAfter(expected: ChronoLocalDateTime<*>): Expect<T>
Expects that the subject of fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.isAfter(expected: ChronoZonedDateTime<*>): Expect<T>
Expects that the subject of |
|
fun <T : ChronoLocalDate> Expect<T>.isAfterOrEqual(expected: ChronoLocalDate): Expect<T>
Expects that the subject of fun <T : ChronoLocalDate> Expect<T>.isAfterOrEqual(expected: String): Expect<T>
Expects that the subject of fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.isAfterOrEqual(expected: ChronoLocalDateTime<*>): Expect<T>
Expects that the subject of fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.isAfterOrEqual(expected: ChronoZonedDateTime<*>): Expect<T>
Expects that the subject of |
|
fun <T : ChronoLocalDate> Expect<T>.isBefore(expected: ChronoLocalDate): Expect<T>
Expects that the subject of fun <T : ChronoLocalDate> Expect<T>.isBefore(expected: String): Expect<T>
Expects that the subject of fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.isBefore(expected: ChronoLocalDateTime<*>): Expect<T>
Expects that the subject of fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.isBefore(expected: ChronoZonedDateTime<*>): Expect<T>
Expects that the subject of |
|
fun <T : ChronoLocalDate> Expect<T>.isBeforeOrEqual(expected: ChronoLocalDate): Expect<T>
Expects that the subject of fun <T : ChronoLocalDate> Expect<T>.isBeforeOrEqual(expected: String): Expect<T>
Expects that the subject of fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.isBeforeOrEqual(expected: ChronoLocalDateTime<*>): Expect<T>
Expects that the subject of fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.isBeforeOrEqual(expected: ChronoZonedDateTime<*>): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isDirectory(): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.isEmpty(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isEmptyDirectory(): Expect<T>
Expects that the subject of |
|
fun <T : ChronoLocalDate> Expect<T>.isEqual(expected: ChronoLocalDate): Expect<T>
Expects that the subject of fun <T : ChronoLocalDate> Expect<T>.isEqual(expected: String): Expect<T>
Expects that the subject of fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.isEqual(expected: ChronoLocalDateTime<*>): Expect<T>
Expects that the subject of fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.isEqual(expected: ChronoZonedDateTime<*>): Expect<T>
Expects that the subject of |
|
fun <T : Comparable<T>> Expect<T>.isEqualComparingTo(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : BigDecimal> Expect<T>.isEqualIncludingScale(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isExecutable(): Expect<T>
Expects that the subject of |
|
fun <T : Comparable<T>> Expect<T>.isGreaterThan(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : Comparable<T>> Expect<T>.isGreaterThanOrEqual(expected: T): Expect<T>
Expects that the subject of |
|
fun <K, V, T : Entry<K, V>> Expect<T>.isKeyValue(key: K, value: V): Expect<T>
Expects that the property Map.Entry.key of the subject of |
|
fun <T : Comparable<T>> Expect<T>.isLessThan(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : Comparable<T>> Expect<T>.isLessThanOrEqual(expected: T): Expect<T>
Expects that the subject of |
|
fun <T> Expect<T>.isNoneOf(expected: T, vararg otherValues: T): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.isNotBlank(): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.isNotEmpty(): Expect<T>
Expects that the subject of |
|
fun <T : BigDecimal> Expect<T>.isNotEqualIncludingScale(expected: T): Expect<T>
Expects that the subject of |
|
fun <T> Expect<T>.isNotIn(expected: IterableLike): Expect<T>
Expects that the subject of |
|
fun <T : BigDecimal> Expect<T>.isNotNumericallyEqualTo(expected: T): Expect<T>
Expects that the subject of |
|
fun <T> Expect<T>.isNotSameAs(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : BigDecimal> Expect<T>.isNumericallyEqualTo(expected: T): Expect<T>
Expects that the subject of |
|
fun <E, T : Optional<E>> Expect<T>.isPresent(): Expect<E>
Expects that the subject of fun <E, T : Optional<E>> Expect<T>.isPresent(assertionCreator: Expect<E>.() -> Unit): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isReadable(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isRegularFile(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isRelative(): Expect<T>
Expects that the subject of |
|
fun <T> Expect<T>.isSameAs(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isSymbolicLink(): Expect<T>
Expects that the subject of |
|
fun <T : Path> Expect<T>.isWritable(): Expect<T>
Expects that the subject of |
|
fun <T, R> Expect<T>.its(extractor: T.() -> R): FeatureExpect<T, R>
Extracts a feature out of the current subject of fun <T, R> Expect<T>.its(extractor: T.() -> R, assertionCreator: Expect<R>.() -> Unit): Expect<T>
Extracts a feature out of the current subject of |
|
fun <K, V, T : Entry<K, V>> Expect<T>.key(assertionCreator: Expect<K>.() -> Unit): Expect<T>
Expects that the property Map.Entry.key of the subject of |
|
fun <K, V, T : Map<out K, V>> Expect<T>.keys(assertionCreator: Expect<Set<K>>.() -> Unit): Expect<T>
Expects that the property Map.keys of the subject of |
|
fun <T : CharSequence> Expect<T>.matches(expected: Regex): Expect<T>
Expects that the subject of |
|
fun <E : Comparable<E>, T : Iterable<E>> Expect<T>.max(): Expect<E>
Creates an Expect for the result of calling fun <E : Comparable<E>, T : Iterable<E>> Expect<T>.max(assertionCreator: Expect<E>.() -> Unit): Expect<T>
Expects that the result of calling |
|
fun <T : Throwable> Expect<T>.message(assertionCreator: Expect<String>.() -> Unit): Expect<T>
Expects that the property Throwable.message of the subject of |
|
fun <T : Throwable> Expect<T>.messageContains(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
Expects that the property Throwable.message of the subject of |
|
fun <E : Comparable<E>, T : Iterable<E>> Expect<T>.min(): Expect<E>
Creates an Expect for the result of calling fun <E : Comparable<E>, T : Iterable<E>> Expect<T>.min(assertionCreator: Expect<E>.() -> Unit): Expect<T>
Expects that the result of calling |
|
fun <T : CharSequence> Expect<T>.mismatches(expected: Regex): Expect<T>
Expects that the subject of |
|
fun Expect<LocalDate>.month(assertionCreator: Expect<Int>.() -> Unit): Expect<LocalDate>
Expects that the property LocalDate.monthValue of the subject of fun Expect<LocalDateTime>.month(assertionCreator: Expect<Int>.() -> Unit): Expect<LocalDateTime>
Expects that the property LocalDateTime.monthValueof the subject of fun Expect<ZonedDateTime>.month(assertionCreator: Expect<Int>.() -> Unit): Expect<ZonedDateTime>
Expects that the property ZonedDateTime.monthValue of the subject of |
|
fun <E : Any, T : Iterable<E?>> Expect<T>.none(assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStep<T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerStep<T, S>
Restricts a fun <E, T, S : InAnyOrderSearchBehaviour> IterableLikeContains.EntryPointStep<E, T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerStep<E, T, S>
Restricts a |
|
fun <T> Expect<T>.notToBe(expected: T): Expect<T>
Expects that the subject of |
|
fun <T : Any> Expect<T?>.notToBeNull(): Expect<T>
Expects that the subject of fun <T : Any> Expect<T?>.notToBeNull(assertionCreator: Expect<T>.() -> Unit): Expect<T>
Expects that the subject of |
|
fun <R, T : () -> R> Expect<T>.notToThrow(): Expect<R>
Expects that no Throwable is thrown at all when calling the subject (a lambda with arity 0, i.e. without arguments)
and changes the subject of fun <R, T : () -> R> Expect<T>.notToThrow(assertionCreator: Expect<R>.() -> Unit): Expect<R>
Expects that no Throwable is thrown at all when calling the subject (a lambda with arity 0, i.e. without arguments) and that the corresponding return value holds all assertions the given assertionCreator creates. |
|
fun <T : Path> Expect<T>.parent(assertionCreator: Expect<Path>.() -> Unit): Expect<T>
Expects that this Path has a parent, that the parent holds all assertions the
given assertionCreator creates for it and returns an Expect for the current subject of |
|
fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.regex(pattern: String, vararg otherPatterns: String): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.regex(pattern: Regex, vararg otherPatterns: Regex): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.CheckerStep<T, IgnoringCaseSearchBehaviour>.regex(pattern: String, vararg otherPatterns: String): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>.regex(pattern: String, vararg otherPatterns: String): Expect<T>
Finishes the specification of the sophisticated |
|
fun <T : Path> Expect<T>.resolve(other: String): Expect<Path>
Expects that other resolves against this Path and creates an Expect for the resolved Path so that further fluent calls are assertions about it. fun <T : Path> Expect<T>.resolve(other: String, assertionCreator: Expect<Path>.() -> Unit): Expect<T>
Expects that other resolves against this Path, that the resolved Path holds all assertions the
given assertionCreator creates for it and returns an Expect for the current subject of |
|
fun <K, V, T : Pair<K, V>> Expect<T>.second(assertionCreator: Expect<V>.() -> Unit): Expect<T>
Expects that the property Pair.second of the subject of |
|
fun <E, T : Collection<E>> Expect<T>.size(assertionCreator: Expect<Int>.() -> Unit): Expect<T>
Expects that the property Collection.size of the subject of |
|
fun <T : CharSequence> Expect<T>.startsNotWith(expected: CharSequence): Expect<T> fun <T : CharSequence> Expect<T>.startsNotWith(expected: Char): Expect<T>
Expects that the subject of fun <T : Path> Expect<T>.startsNotWith(expected: Path): Expect<T>
Expects that the subject of |
|
fun <T : CharSequence> Expect<T>.startsWith(expected: CharSequence): Expect<T> fun <T : CharSequence> Expect<T>.startsWith(expected: Char): Expect<T>
Expects that the subject of fun <T : Path> Expect<T>.startsWith(expected: Path): Expect<T>
Expects that the subject of |
|
fun <T> Expect<T>.toBe(expected: T): Expect<T>
Expects that the subject of fun <T : BigDecimal> Expect<T?>.toBe(expected: Nothing?): Expect<T?>
Expects that the subject of |
|
fun <T : Any> Expect<T?>.toBeNullIfNullGivenElse(assertionCreatorOrNull: (Expect<T>.() -> Unit)?): Expect<T?>
Expects that the subject of |
|
fun Expect<Float>.toBeWithErrorTolerance(expected: Float, tolerance: Float): Expect<Float>
Expects that the subject of fun Expect<Double>.toBeWithErrorTolerance(expected: Double, tolerance: Double): Expect<Double>
Expects that the subject of fun <T : BigDecimal> Expect<T>.toBeWithErrorTolerance(expected: BigDecimal, tolerance: BigDecimal): Expect<T>
Expects that the subject of |
|
fun <TExpected : Throwable> Expect<() -> Any?>.toThrow(): Expect<TExpected>
Expects that the thrown Throwable is a TExpected (the same type or a sub-type). fun <TExpected : Throwable> Expect<() -> Any?>.toThrow(assertionCreator: Expect<TExpected>.() -> Unit): Expect<TExpected>
Expects that the thrown Throwable is a TExpected (the same type or a sub-type) and that it holds all assertions the given assertionCreator creates. |
|
fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.value(expected: CharSequenceOrNumberOrChar): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.CheckerStep<T, IgnoringCaseSearchBehaviour>.value(expected: CharSequenceOrNumberOrChar): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>.value(expected: CharSequenceOrNumberOrChar): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.CheckerStep<E, T, InAnyOrderSearchBehaviour>.value(expected: E): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.EntryPointStep<E, T, InAnyOrderOnlySearchBehaviour>.value(expected: E): Expect<T> fun <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlySearchBehaviour>.value(expected: E): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T : Entry<K, V>> Expect<T>.value(assertionCreator: Expect<V>.() -> Unit): Expect<T>
Expects that the property Map.Entry.value of the subject of |
|
fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.values(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.CheckerStep<T, IgnoringCaseSearchBehaviour>.values(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>.values(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.CheckerStep<E, T, InAnyOrderSearchBehaviour>.values(expected: E, vararg otherExpected: E): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.EntryPointStep<E, T, InAnyOrderOnlySearchBehaviour>.values(expected: E, vararg otherExpected: E): Expect<T>
Finishes the specification of the sophisticated fun <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlySearchBehaviour>.values(expected: E, vararg otherExpected: E): Expect<T>
Finishes the specification of the sophisticated fun <K, V, T : Map<out K, V>> Expect<T>.values(assertionCreator: Expect<Collection<V>>.() -> Unit): Expect<T>
Expects that the property Map.keys of the subject of |
|
fun <T> RootExpect<T>.withOptions(configuration: RootExpectBuilder.OptionsChooser<T>.() -> Unit): Expect<T>
Uses the given configuration-lambda to create an RootExpectOptions which in turn is used to re-define (parts) of the existing configuration. fun <T> RootExpect<T>.withOptions(options: RootExpectOptions<T>): Expect<T> fun <T, R> FeatureExpect<T, R>.withOptions(options: FeatureExpectOptions<R>): Expect<R>
Uses the given options to override (parts) of the existing configuration. fun <T, R> FeatureExpect<T, R>.withOptions(configuration: FeatureExpectOptionsChooser<R>.() -> Unit): Expect<R>
Uses the given configuration-lambda to create a FeatureExpectOptions which in turn is used to re-define (parts) of the existing configuration. |
|
fun <T> RootExpect<T>.withRepresentation(textRepresentation: String): Expect<T> fun <T, R> FeatureExpect<T, R>.withRepresentation(textRepresentation: String): Expect<R>
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). fun <T> RootExpect<T>.withRepresentation(representationProvider: (T) -> Any): Expect<T> fun <T, R> FeatureExpect<T, R>.withRepresentation(representationProvider: (R) -> Any): Expect<R>
Uses the given representationProvider to retrieve a representation which can be based on the current subject where it is used as new representation of the subject instead of the representation that has been defined so far (which defaults to the subject itself). |
|
fun Expect<LocalDate>.year(assertionCreator: Expect<Int>.() -> Unit): Expect<LocalDate>
Expects that the property LocalDate.yearof the subject of fun Expect<LocalDateTime>.year(assertionCreator: Expect<Int>.() -> Unit): Expect<LocalDateTime>
Expects that the property LocalDateTime.year of the subject of fun Expect<ZonedDateTime>.year(assertionCreator: Expect<Int>.() -> Unit): Expect<ZonedDateTime>
Expects that the property ZonedDateTime.year of the subject of |