Contains the code completion focused assertion function API in English.
val <T : Any> IAssertionPlant<T>.and: IAssertionPlant<T>
Can be used to separate assertions when using the fluent API. |
|
val <T : CharSequence> IAssertionPlant<T>.contains: CharSequenceContainsBuilder<T, CharSequenceContainsNoOpSearchBehaviour>
Creates an CharSequenceContainsBuilder based on this IAssertionPlant which allows to define
more sophisticated |
|
val <T : CharSequence> CharSequenceContainsBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.ignoringCase: CharSequenceContainsBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>
Defines that the decoration behaviour |
|
val <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsNoOpSearchBehaviour>.inAnyOrder: IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>
Defines that the search behaviour "find entries |
|
val <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsNoOpSearchBehaviour>.inOrder: IterableContainsBuilder<E, T, IterableContainsInOrderSearchBehaviour>
Defines that the search behaviour "find entries |
|
val <T : Any> IAssertionPlant<T>.it: T
Alias for IAssertionPlant.subject useful in property assertions. |
|
val <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.only: IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour> val <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInOrderSearchBehaviour>.only: IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>
Defines that the constraint " |
fun <T : Any> IAssertionPlant<T>.and(assertionCreator: IAssertionPlant<T>.() -> Unit): IAssertionPlant<T>
Can be used to create a group of sub assertions when using the fluent API. |
|
fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.atLeast(times: Int): CharSequenceContainsAtLeastCheckerBuilder<T, S>
Restricts a fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.atLeast(times: Int): IterableContainsAtLeastCheckerBuilder<E, T>
Restricts a |
|
fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.atMost(times: Int): CharSequenceContainsAtMostCheckerBuilder<T, S>
Restricts a fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.atMost(times: Int): IterableContainsAtMostCheckerBuilder<E, T>
Restricts a |
|
fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsAtLeastCheckerBuilder<T, S>.butAtMost(times: Int): CharSequenceContainsButAtMostCheckerBuilder<T, S>
Restricts a fun <E, T : Iterable<E>> IterableContainsAtLeastCheckerBuilder<E, T>.butAtMost(times: Int): IterableContainsButAtMostCheckerBuilder<E, T>
Restricts a |
|
fun <T : CharSequence> IAssertionPlant<T>.contains(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains expected's toString representation and the toString representation of the otherExpected (if defined), using a non disjoint search. fun <E, T : Iterable<E>> IAssertionPlant<T>.contains(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains expected and the otherExpected (if defined). fun <E : Any, T : Iterable<E>> IAssertionPlant<T>.contains(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains only an entry holding the assertions created by the assertionCreator and an additional entry for each otherAssertionCreators (if defined) where it does not matter in which order the entries appear. |
|
fun <T : CharSequence> IAssertionPlant<T>.containsDefaultTranslationOf(expected: ITranslatable, vararg otherExpected: ITranslatable): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains expected's getDefault representation and the getDefault representations of the otherExpected (if defined). |
|
fun <T : CharSequence> IAssertionPlant<T>.containsNot(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject does not contain expected's toString representation and neither one of the otherExpected's toString representation (if defined). fun <E, T : Iterable<E>> IAssertionPlant<T>.containsNot(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject does not contain expected and neither one of the otherExpected (if defined). |
|
fun <T : CharSequence> IAssertionPlant<T>.containsNotDefaultTranslationOf(expected: ITranslatable, vararg otherExpected: ITranslatable): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject does not contain expected's getDefault representation and neither one of the otherExpected's getDefault representation (if defined). |
|
fun <E, T : Iterable<E>> IAssertionPlant<T>.containsStrictly(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains only expected and the otherExpected (if defined) in the defined order. fun <E : Any, T : Iterable<E>> IAssertionPlant<T>.containsStrictly(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains only an entry holding the assertions created by the assertionCreator and an additional entry for each otherAssertionCreators (if defined) in the defined order holding the assertions created by them. |
|
fun <T : CharSequence> IAssertionPlant<T>.endsNotWith(expected: CharSequence): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject does not end with expected. |
|
fun <T : CharSequence> IAssertionPlant<T>.endsWith(expected: CharSequence): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject ends with expected. |
|
fun <E : Any, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.entries(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E : Any, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.entries(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E : Any, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.entries(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Finishes the specification of the sophisticated |
|
fun <E : Any, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.entry(assertionCreator: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Finishes the specification of the sophisticated |
|
fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.exactly(times: Int): CharSequenceContainsExactlyCheckerBuilder<T, S>
Restricts a fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.exactly(times: Int): IterableContainsExactlyCheckerBuilder<E, T>
Restricts a |
|
fun <T : Collection<*>> IAssertionPlant<T>.hasSize(size: Int): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject's Collection.size is size. |
|
fun <TSub : Any> IAssertionPlant<Any>.isA(assertionCreator: IAssertionPlant<TSub>.() -> Unit): Unit
Makes the assertion that IAssertionPlant.subject is a TSub (the same type or a sub-type) and if so, uses assertionCreator which could create further assertions which are added as a group. |
|
fun <T : CharSequence> IAssertionPlant<T>.isEmpty(): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject.kotlin.text.isEmpty. |
|
fun IAssertionPlant<Boolean>.isFalse(): IAssertionPlant<Boolean>
Makes the assertion that IAssertionPlant.subject is |
|
fun <T> IAssertionPlant<T>.isGreaterOrEquals(expected: T): IAssertionPlant<T> where T : Number, T : Comparable<T>
Makes the assertion that IAssertionPlant.subject is greater than or equals expected. |
|
fun <T> IAssertionPlant<T>.isGreaterThan(expected: T): IAssertionPlant<T> where T : Number, T : Comparable<T>
Makes the assertion that IAssertionPlant.subject is greater than expected. |
|
fun <T> IAssertionPlant<T>.isLessOrEquals(expected: T): IAssertionPlant<T> where T : Number, T : Comparable<T>
Makes the assertion that IAssertionPlant.subject is less than or equals expected. |
|
fun <T> IAssertionPlant<T>.isLessThan(expected: T): IAssertionPlant<T> where T : Number, T : Comparable<T>
Makes the assertion that IAssertionPlant.subject is less than expected. |
|
fun <T : CharSequence> IAssertionPlant<T>.isNotEmpty(): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject.kotlin.text.isNotEmpty. |
|
fun <T : Any> IAssertionPlantNullable<T?>.isNotNull(assertionCreator: IAssertionPlant<T>.() -> Unit): Unit
Makes the assertion that IAssertionPlantNullable.subject is not null and if so, uses assertionCreator which could create further assertions which are added as a group. |
|
fun <T : Any> IAssertionPlant<T>.isNotSame(expected: T): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject is not the same instance as expected. |
|
fun <T> IAssertionPlantNullable<T>.isNull(): Unit
Makes the assertion that IAssertionPlant.subject is |
|
fun <T : Any> IAssertionPlant<T>.isSame(expected: T): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject is the same instance as expected. |
|
fun IAssertionPlant<Boolean>.isTrue(): IAssertionPlant<Boolean>
Makes the assertion that IAssertionPlant.subject is |
|
fun <T : Throwable> IAssertionPlant<T>.message(assertionCreator: IAssertionPlant<String>.() -> Unit): Unit
Creates an IAssertionPlantNullable for the message of the plant's subject (which is an Throwable) and makes the assertion that message isNotNull and uses assertionCreator which might create further IAssertions which are lazily evaluated at the end. |
|
fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.notOrAtMost(times: Int): CharSequenceContainsNotOrAtMostCheckerBuilder<T, S>
Restricts a fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.notOrAtMost(times: Int): IterableContainsNotOrAtMostCheckerBuilder<E, T>
Restricts a |
|
fun <T : Any> IAssertionPlant<T>.notToBe(expected: T): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject is not (does not equal) expected. |
|
fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.object(expected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated |
|
fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.objects(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.objects(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.objects(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated |
|
fun <T : Any, TProperty : Any> IAssertionPlant<T>.property(property: KProperty0<TProperty>): IAssertionPlant<TProperty>
Creates an IAssertionPlant for the given property which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the given property, to the current plant. fun <T : Any, TProperty : Any> IAssertionPlant<T>.property(property: KProperty0<TProperty>, assertionCreator: IAssertionPlant<TProperty>.() -> Unit): IAssertionPlant<TProperty>
Creates an IAssertionPlant for the given property which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the given property, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. |
|
fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.regex(pattern: Any, vararg otherPatterns: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>.regex(pattern: Any, vararg otherPatterns: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated |
|
fun <T : Any, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction0<TReturnValue>): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant. fun <T : Any, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction0<TReturnValue>, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. fun <T : Any, T1, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction1<T1, TReturnValue>, arg1: T1): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant. fun <T : Any, T1, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction1<T1, TReturnValue>, arg1: T1, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. fun <T : Any, T1, T2, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction2<T1, T2, TReturnValue>, arg1: T1, arg2: T2): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1 and arg2, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant. fun <T : Any, T1, T2, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction2<T1, T2, TReturnValue>, arg1: T1, arg2: T2, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1 and arg2, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. fun <T : Any, T1, T2, T3, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction3<T1, T2, T3, TReturnValue>, arg1: T1, arg2: T2, arg3: T3): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2 and arg3, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant. fun <T : Any, T1, T2, T3, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction3<T1, T2, T3, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2 and arg3, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. fun <T : Any, T1, T2, T3, T4, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction4<T1, T2, T3, T4, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2, arg3 and arg4, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant. fun <T : Any, T1, T2, T3, T4, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction4<T1, T2, T3, T4, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2, arg3 and arg4, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. fun <T : Any, T1, T2, T3, T4, T5, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction5<T1, T2, T3, T4, T5, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2, arg3, arg4 and arg5, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant. fun <T : Any, T1, T2, T3, T4, T5, TReturnValue : Any> IAssertionPlant<T>.returnValueOf(method: KFunction5<T1, T2, T3, T4, T5, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>
Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2, arg3, arg4 and arg5, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda. |
|
fun <T : CharSequence> IAssertionPlant<T>.startsNotWith(expected: CharSequence): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject does not start with expected. |
|
fun <T : CharSequence> IAssertionPlant<T>.startsWith(expected: CharSequence): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject starts with expected. |
|
fun <T : Any> IAssertionPlant<T>.toBe(expected: T): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject is (equals) expected. |
|
fun <TExpected : Throwable> ThrowableThrownBuilder.toThrow(): Unit
Makes the assertion that the thrown Throwable is of type TExpected. fun <TExpected : Throwable> ThrowableThrownBuilder.toThrow(assertionCreator: IAssertionPlant<TExpected>.() -> Unit): Unit
Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well. |
|
fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.value(expected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>.value(expected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.value(expected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated |
|
fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.values(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>.values(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.values(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.values(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.values(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated |