Package-level declarations
Contains the API which provides a pure fluent API in English and which has its design focus on usability in conjunction with code completion.
Contains the API which provides a pure fluent API in English and which has its design focus on usability in conjunction with code completion.
Properties
Creates an Expect for the property LocalDateTime.dayOfMonth of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property LocalDate.dayOfMonth of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property ZonedDateTime.dayOfMonth of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property LocalDateTime.dayOfWeek of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property LocalDate.getDayOfWeek of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property ZonedDatetime.dayOfWeek of the subject of this
expectation, so that further fluent calls are assertions about it.
Defines that the IterableLike contains in order only
groups of entries whereas the order within the group is specified as next step.
Defines that the v behaviour ignore case
shall be applied to this sophisticated contains
assertion.
Defines that the search behaviour ignore case
shall be applied to this sophisticated contains not
assertion.
Defines that the search behaviour "find entries in any order
in the IterableLike" shall be applied to this sophisticated to contain
in IterableLike expectation.
Defines that the search behaviour "find entries in order
in the IterableLike" shall be applied to this sophisticated to contain
in IterableLike expectation.
Creates an Expect for the property LocalDateTime.monthValue of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property LocalDate.monthValue of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property ZonedDateTime.monthValue of the subject of this
expectation, so that further fluent calls are assertions about it.
Starts a sophisticated noToContain
assertion building process based on this Expect and already chooses a NotCheckerStep.
Starts a sophisticated toContain
assertion building process based on this Expect and already chooses a NotCheckerStep.
Defines that the constraint "only
the specified entries exist in the IterableLike" shall be applied to this sophisticated to contain
in IterableLike expectation.
Defines that the constraint "only
the specified entries exist in the IterableLike" shall be applied to this sophisticated to contain in order
in IterableLike expectation.
Defines that the constraint "only
the specified entries exist in the MapLike" shall be applied to this sophisticated to contain
MapLike expectation.
Creates an Expect for the property Collection.size of the subject of this
expectation, so that further fluent calls are assertions about it.
Starts a sophisticated toContain
assertion building process based on this Expect.
Starts a sophisticated toContain
expectation building process based on this Expect.
A filler word to emphasise that the next step defines the order within expected groups of values.
Creates an Expect for the property LocalDateTime.year[LocalDateTime.getYear of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property LocalDate.year of the subject of this
expectation, so that further fluent calls are assertions about it.
Creates an Expect for the property ZonedDateTime.year of the subject of this
expectation, so that further fluent calls are assertions about it.
Functions
Turns Expect<Map<K, V>>
into Expect<Set<Map.Entry<K, V>>>
.
Turns Expect<Map<K, V>>
into Expect<Set<Map.Entry<K, V>>>
and expects that it holds all assertions the given assertionCreator creates for it.
Turns Expect<E, T : Iterable<E>>
into Expect<List<E>
.
Turns Expect<E, T : Sequence<E>>
into Expect<List<E>
.
Turns Expect<Array<E>>
into Expect<List<E>>
.
Turns Expect<BooleanArray>
into Expect<List<Boolean>>
.
Turns Expect<CharArray>
into Expect<List<Byte>>
.
Turns Expect<CharArray>
into Expect<List<Char>>
.
Turns Expect<DoubleArray>
into Expect<List<Double>>
.
Turns Expect<FloatArray>
into Expect<List<Float>>
.
Turns Expect<IntArray>
into Expect<List<Int>>
.
Turns Expect<LongArray>
into Expect<List<Double>>
.
Turns Expect<ShortArray>
into Expect<List<Short>>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject as List.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject as List.
Turns Expect<Date>
into Expect<LocalDate>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject asDate.
Turns Expect<Date>
into Expect<LocalDateTime>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject asDate.
Restricts a contains
assertion by specifying that the number of occurrences of the value which we are looking for occurs at least
number of times within the search input.
Restricts a contains
assertion by specifying that the number of occurrences of the entry which we are looking for occurs at least
number of times within the IterableLike.
Restricts a contains
assertion by specifying that the number of occurrences of the value which we are looking for occurs at least
once but at most
number of times within the search input.
Restricts a contains
assertion by specifying that the number of occurrences of the entry which we are looking for occurs at least
once but at most
number of times within the IterableLike.
Restricts a contains at least
assertion by specifying that the number of occurrences of the value which we are looking for occurs at most
number of times within the search input.
Restricts a contains at least
assertion by specifying that the number of occurrences of the entry which we are looking for occurs at most
number of times within the IterableLike.
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.
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.
Expects that the property LocalDateTime.dayOfMonth of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property LocalDate.dayOfMonth of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property ZonedDateTime.dayOfMonth of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property LocalDateTime.dayOfWeekof the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property LocalDate.getDayOfWeek of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property ZonedDatetime.dayOfWeek of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Finishes the specification of the sophisticated to contain
expectation where all elements of the expectedIterableLike shall be searched (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where all elements of the expectedIterableLike shall be searched, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain all elements of the expectedIterableLike where it does not matter in which order they appear.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only and all elements of expectedIterableLike where it does not matter in which order.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only and all elements of expectedIterableLike in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain an entry for assertionCreatorOrNull as well as for the otherAssertionCreatorsOrNulls where it does not matter in which order they appear -- an entry is contained if it either holds all assertions assertionCreatorOrNull creates or needs to be null
in case assertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given keyValuePair as well as the otherPairs where it does not matter in which order they appear.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain the given keyValuePair as well as the otherPairs where it does not matter in which order they appear.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given keyValue as well as the otherKeyValues where it does not matter in which order they appear -- an entry is contained if it has a key as defined by keyValue's KeyValue.key and a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain the given keyValue as well as the otherKeyValues where it does not matter in which order they appear -- an entry is contained if it has a key as defined by keyValue's KeyValue.key and a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only an entry for assertionCreatorOrNull as well as for the otherAssertionCreatorsOrNulls where it does not matter in which order they appear -- an entry is contained if it either holds all assertions assertionCreatorOrNull creates or needs to be null
in case assertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only an entry for assertionCreatorOrNull as well as for the otherAssertionCreatorsOrNulls in the specified order -- an entry is contained if it either holds all assertions assertionCreatorOrNull creates or needs to be null
in case assertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given keyValuePair as well as the otherPairs in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given keyValue as well as the otherKeyValues in the specified order -- an entry is contained if it has a key as defined by keyValue's KeyValue.key and a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only and all entries of the given expectedMapLike where it does not matter in which order they appear.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain all entries of the given expectedMapLike where it does not matter in which order they appear.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only and all entries of the given expectedMapLike in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain an entry which either holds all assertions assertionCreatorOrNull creates or needs to be null
in case assertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only one entry which holds all assertions created by the given assertionCreatorOrNull or is null
in case assertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain exactly one entry where key and value have to equal the given keyValuePair.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain the given keyValuePair.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain exactly one entry with a key as defined by keyValue's KeyValue.key and a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain an entry with a key as defined by keyValue's KeyValue.key and a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
.
Restricts a contains
assertion by specifying that the number of occurrences of the value which we are looking for occurs exactly
number of times within the search input.
Restricts a contains
assertion by specifying that the number of occurrences of the entry which we are looking for occurs exactly
number of times within the IterableLike.
Expects that the property Path.extension (provided via niok) of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Extracts a feature out of the current subject of this
expectation, based on the given provider, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the value which is returned when calling f on the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the property out of the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts a feature out of the current subject of this
expectation, based on the given provider, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts a feature out of the current subject of this
expectation based on the given provider and using the given description, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the value which is returned when calling f on the current subject of this
expectation, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts the value which is returned when calling f with argument a1 on the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the property out of the current subject of this
expectation, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts a feature out of the current subject of this
expectation based on the given provider and using the given description, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts the value which is returned when calling f with argument a1 on the current subject of this
expectation, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts the value which is returned when calling f with arguments a1, a2 on the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the value which is returned when calling f with argument a1, a2 on the current subject of this
expectation, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts the value which is returned when calling f with arguments a1, a2, a3 on the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the value which is returned when calling f with argument a1, a2, a3 on the current subject of this
expectation, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts the value which is returned when calling f with arguments a1, a2, a3, a4 on the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts the value which is returned when calling f with argument a1, a2, a3, a4 on the current subject of this
expectation, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts the value which is returned when calling f with arguments a1, a2, a3, a4, a5 on the current subject of this
expectation, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Expects that the property Path.fileNameAsString (provided via niok) of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property Path.fileNameWithoutExtension (provided via niok) of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the given index is within the bounds of the subject of this
expectation (a List) and returns an Expect for the element at that position.
Expects that the given index is within the bounds of the subject of this
expectation (a List) and that the element at that position holds all assertions the given assertionCreator creates for it.
Expects that the subject of this
expectation (a Map) contains the given key, creates an Expect for the corresponding value and returns the newly created Expect, so that further fluent calls are expectations about it.
Expects that the subject of this
expectation (a Map) contains the given key and that the corresponding value holds all assertions the given assertionCreator creates for it.
Creates and appends a group based on the given description (optionally representationProvider) and groupingActions and returns an ExpectGrouping.
Creates and appends a group based on the given description (optionally representationProvider) and assertionCreator and returns an Expect.
Finishes the specification of the sophisticated to contain
expectation where the expected firstGroup as well as the secondGroup and optionally otherExpectedGroups of values need to be contained in IterableLike as only elements and in the specified order whereas the values within the groups can occur in any order.
Finishes the specification of the sophisticated to contain
expectation where the expected firstGroup as well as the secondGroup and optionally otherExpectedGroups of identification lambdas, identifying an entry, need to be contained in IterableLike as only elements and in the specified order whereas the identification lambdas within the groups can occur in any order.
Extracts a feature out of the current subject of this
expectation with the help of the given extractor, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Extracts a feature out of the current subject of this
expectation with the help of the given extractor, creates a new Expect for it, applies an expectation-group based on the given assertionCreator for the feature and returns the initial Expect with the current subject.
Expects that the property Map.Entry.key of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Finishes the specification of the sophisticated to contain
expectation where the given Regex as well as the otherPatterns are expected to have a match, using a non-disjoint search.
Creates an Expect for the result of calling max()
on the subject of this
expectation, so that further fluent calls are assertions about it.
Expects that the result of calling max()
on the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property Throwable.message of the subject of this
expectation is not null and holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property Throwable.message of the subject of this
expectation is not null and contains expected's toString representation and the toString representation of the otherExpected (if given), using a non-disjoint search.
Creates an Expect for the result of calling min()
on the subject of this
expectation, so that further fluent calls are assertions about it.
Expects that the result of calling min()
on the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property LocalDateTime.monthValueof the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property LocalDate.monthValue of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property ZonedDateTime.monthValue of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Restricts a contains
assertion by specifying that the number of occurrences of the value which we are looking for occurs not at all or at most
number of times within the search input.
Restricts a contains
assertion by specifying that the number of occurrences of the entry which we are looking for occurs not at all or at most
number of times within the IterableLike.
Expects that the subject of this
expectation is not a TNotExpected (the same type or a sub-type).
Expects that the subject of this
expectation is not the given type neither one of the otherTypes (the same type or a sub-type).
Expects that the subject of this
expectation (a CharSequence) CharSequence.kotlin.text.isNotBlank.
Expects that the subject of this
expectation (a CharSequence) CharSequence.kotlin.text.isNotEmpty.
Expects that the subject of this
expectation (a Collection) is not an empty Collection.
Expects that the subject of this
expectation is not greater than expected. The comparison is carried out with Comparable.compareTo.
Deprecated overload which shall help users to use notToBeGreaterThan instead.
Expects that the subject of this
expectation is not less than expected. The comparison is carried out with Comparable.compareTo.
Deprecated overload which shall help users to use toBeAfterOrTheSamePointInTimeAs instead.
Expects that the subject of this
expectation (a CharSequence) does not contain expected's toString representation and neither one of the otherExpected's toString representation (if given).
Expects that the subject of this
expectation (an Iterable) has at least one element and that it does not contain the expected value and neither one of the otherExpected values (if given).
Expects that the subject of this
expectation (a CharSequence) does not end with expected.
Expects that the subject of this
expectation is not equal to expected.
Deprecated as it would compare the subject against expected including scale -- many developers are not aware of that.
Expects that the subject of this
expectation (a BigDecimal) is not null
.
Expects that the subject of this
expectation (a BigDecimal) is not equal to expected including BigDecimal.scale.
Expects that the subject of this
expectation is not null and changes the subject to the non-nullable version.
Expects that the subject of this
expectation is not null and that it holds all assertions the given assertionCreator creates.
Expects that the subject of this
expectation (a BigDecimal) is not numerically equal to expected.
Expects that the subject of this
expectation is not equal to any value of expected.
Expects that the subject of this
expectation is not equal to expected and otherValues.
Expects that the subject of this
expectation (a CharSequence) mismatches the given Regex.
Expects that the subject of this
expectation (a CharSequence) does not start with expected.
Expects that no Throwable is thrown at all when invoking the subject (a function with arity 0, i.e. without arguments) and changes the subject of this
expectation to the return value of type R.
Expects that no Throwable is thrown at all when invoking the subject (a function with arity 0, i.e. without arguments) and that the corresponding return value holds all assertions the given assertionCreator creates.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression pattern as well as the otherPatterns are expected to have a match (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression pattern as well as the otherPatterns are expected to have a match, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given Regex as well as the otherPatterns are expected to have a match, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression pattern as well as the otherPatterns are expected to to have at least one match (ignoring case), using a non-disjoint search.
Expects that other resolves against this Path and creates an Expect for the resolved Path so that further fluent calls are assertions about it.
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 this
expectation.
Expects that the property Collection.size of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property Map.size of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the subject of this
expectation (a Result) is a failure (Result.isFailure) and that it encapsulates an exception of type TExpected.
Expects that the subject of this
expectation (a Result) is a failure (Result.isFailure) , that it encapsulates an exception of type TExpected and that the exception holds all assertions the given assertionCreator creates.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is after the expected.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before the expected given as String in (modified) ISO 8601 format. The string will be converted to a LocalDateTime according to ISO 8601 but with a slight deviation. The alternative notation (e.g. 20200401120001 instead of 2020-04-01T12:00:01) is not supported and we accept a date without time in which case 00:00:00 is used. Following the supported formats from the longest to the shortest: yyyy-mm-ddThh:mm:ss.sss (up to 9 digits for nanoseconds) yyyy-mm-ddThh:mm:ss yyyy-mm-ddThh:mm yyyy-mm-dd
Expects that the subject of this
expectation (a ChronoLocalDate) is after the expected.
Expects that the subject of this
expectation (a ChronoLocalDate) is after the expected given as String.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is after the expected.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is after the expected given as String.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is after or equal the expected.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before the expected given as String in (modified) ISO 8601 format. The string will be converted to a LocalDateTime according to ISO 8601 but with a slight deviation. The alternative notation (e.g. 20200401120001 instead of 2020-04-01T12:00:01) is not supported and we accept a date without time in which case 00:00:00 is used. Following the supported formats from the longest to the shortest: yyyy-mm-ddThh:mm:ss.sss (up to 9 digits for nanoseconds) yyyy-mm-ddThh:mm:ss yyyy-mm-ddThh:mm yyyy-mm-dd
Expects that the subject of this
expectation (a ChronoLocalDate) is after or equal the expected.
Expects that the subject of this
expectation (a ChronoLocalDate) is after or equal the expected given as String.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is after or equal the expected.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is after or equal the expected given as String.
Expects that the subject of this
expectation is a TSub (the same type or a sub-type) and changes the subject to this type.
Expects that the subject of this
expectation is a TSub (the same type or a sub-type) and that it holds all assertions the given assertionCreator creates.
Expects that the subject of this
expectation (a Result) is a success (Result.isSuccess) and returns an Expect for the inner type E.
Expects that the subject of this
expectation (a Result) is a success (Result.isSuccess) and that it holds all assertions the given assertionCreator creates.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before the expected.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before the expected given as String in (modified) ISO 8601 format. The string will be converted to a LocalDateTime according to ISO 8601 but with a slight deviation. The alternative notation (e.g. 20200401120001 instead of 2020-04-01T12:00:01) is not supported and we accept a date without time in which case 00:00:00 is used. Following the supported formats from the longest to the shortest: yyyy-mm-ddThh:mm:ss.sss (up to 9 digits for nanoseconds) yyyy-mm-ddThh:mm:ss yyyy-mm-ddThh:mm yyyy-mm-dd
Expects that the subject of this
expectation (a ChronoLocalDate) is before the expected.
Expects that the subject of this
expectation (a ChronoLocalDate) is before the expected given as String.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is before the expected.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is before the expected given as String.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before or equal the expected.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before the expected given as String in (modified) ISO 8601 format. The string will be converted to a LocalDateTime according to ISO 8601 but with a slight deviation. The alternative notation (e.g. 20200401120001 instead of 2020-04-01T12:00:01) is not supported and we accept a date without time in which case 00:00:00 is used. Following the supported formats from the longest to the shortest: yyyy-mm-ddThh:mm:ss.sss (up to 9 digits for nanoseconds) yyyy-mm-ddThh:mm:ss yyyy-mm-ddThh:mm yyyy-mm-dd
Expects that the subject of this
expectation (a ChronoLocalDate) is before or equal the expected.
Expects that the subject of this
expectation (a ChronoLocalDate) is before or equal the expected given as String.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is before or equals the expected.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is before or equals the expected given as String.
Expects that the subject of this
expectation (a CharSequence) CharSequence.kotlin.text.isEmpty.
Expects that the subject of this
expectation (a Collection) is an empty Collection.
Expects that the subject of this
expectation is equal to expected where the comparison is carried out based on Comparable.compareTo.
Deprecated overload which shall help users to use toBeTheSamePointInTimeAs instead.
Expects that the subject of this
expectation is greater than (>
) expected. The comparison is carried out with Comparable.compareTo.
Deprecated overload which shall help users to use toBeAfter instead.
Expects that the subject of this
expectation is greater than or equal (>=
) expected. The comparison is carried out with Comparable.compareTo.
Deprecated overload which shall help users to use toBeAfterOrTheSamePointInTimeAs instead.
Expects that the subject of this
expectation is less than (<
) expected. The comparison is carried out with Comparable.compareTo.
Deprecated overload which shall help users to use toBeBefore instead.
Expects that the subject of this
expectation is less than or equal (<=
) expected. The comparison is carried out with Comparable.compareTo.
Deprecated overload which shall help users to use toBeBeforeOrTheSamePointInTimeAs instead.
Expects that the subject of this
expectation (an Optional) is present and returns an Expect for the inner type E.
Expects that the subject of this
expectation (an Optional) is present and that the wrapped value of type E holds all assertions the given assertionCreator creates.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is equal to the expected.
Expects that the subject of this
expectation (a ChronoLocalDateTime) is before the expected given as String in (modified) ISO 8601 format. The string will be converted to a LocalDateTime according to ISO 8601 but with a slight deviation. The alternative notation (e.g. 20200401120001 instead of 2020-04-01T12:00:01) is not supported and we accept a date without time in which case 00:00:00 is used. Following the supported formats from the longest to the shortest: yyyy-mm-ddThh:mm:ss.sss (up to 9 digits for nanoseconds) yyyy-mm-ddThh:mm:ss yyyy-mm-ddThh:mm yyyy-mm-dd
Expects that the subject of this
expectation (a ChronoLocalDate) is equal to the expected.
Expects that the subject of this
expectation (a ChronoLocalDate) is equal to the expected given as String.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is equal to the expected.
Expects that the subject of this
expectation (a ChronoZonedDateTime) is equal to the expected given as String.
Expects that the subject of this
expectation (an Iterable) contains an entry holding the assertions created by assertionCreatorOrNull or an entry which is null
in case assertionCreatorOrNull is defined as null
.
Expects that the subject of this
expectation (a CharSequence) contains expected's toString representation and the toString representation of the otherExpected (if given), using a non-disjoint search.
Expects that the subject of this
expectation (an Iterable) contains the expected value and the otherExpected values (if given).
Expects that the subject of this
expectation (an Iterable) contains an entry holding the assertions created by assertionCreatorOrNull or an entry which is null
in case assertionCreatorOrNull is defined as null
-- likewise an entry (can be the same) is searched for each of the otherAssertionCreatorsOrNulls.
Expects that the subject of this
expectation (a Map) contains a key as defined by keyValuePair's Pair.first with a corresponding value as defined by keyValuePair's Pair.second -- optionally the same assertions are created for the otherPairs.
Expects that the subject of this
expectation (a Map) contains a key as defined by keyValue's KeyValue.key with a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
-- optionally the same assertions are created for the otherKeyValues.
Expects that the subject of this
expectation (an Iterable) contains all elements of expectedIterableLike.
Expects that the subject of this
expectation (an Iterable) contains only an entry holding the assertions created by assertionCreatorOrNull or only one entry which is null
in case assertionCreatorOrNull is defined as null
.
Expects that the subject of this
expectation (an Iterable) contains only the expected value and the otherExpected values (if given) in the defined order.
Expects that the subject of this
expectation (an Iterable) contains only an entry holding the assertions created by assertionCreatorOrNull or null
in case assertionCreatorOrNull is defined as null
and likewise an additional entry for each otherAssertionCreatorsOrNulls (if given) whereas the entries have to appear in the defined order.
Expects that the subject of this
expectation (an Iterable) contains only elements of expectedIterableLike in same order
Expects that the subject of this
expectation (a Map) contains only (in any order) a key as defined by keyValuePair's Pair.first with a corresponding value as defined by keyValuePair's Pair.second -- optionally the same assertions are created for the otherPairs.
Expects that the subject of this
expectation (a Map) contains only (in any order) a key as defined by keyValue's KeyValue.key with a corresponding value which either holds all assertions keyValue's KeyValue.valueAssertionCreatorOrNull creates or needs to be null
in case KeyValue.valueAssertionCreatorOrNull is defined as null
-- optionally the same assertions are created for the otherKeyValues.
Expects that the subject of this
expectation (a CharSequence) contains a sequence which matches the given regular expression pattern as well as the otherPatterns (if given), using a non-disjoint search.
Expects that the subject of this
expectation (a CharSequence) ends with expected.
Expects that the subject of this
expectation is equal to expected where the comparison is carried out based on Any.equals.
Deprecated as it would compare the subject against expected including scale -- many developers are not aware of that.
Expects that the subject of this
expectation (a BigDecimal) is null
.
Expects that the subject of this
expectation (a BigDecimal) is equal to expected including BigDecimal.scale.
Expects that the subject of this
expectation is either null
in case assertionCreatorOrNull is null
or is not null
and holds all assertions assertionCreatorOrNull creates.
Expects that the subject of this
expectation (a BigDecimal) is numerically equal to expected.
Expects that the subject of this
expectation (a Collection) has the given expected size.
Expects that the subject of this
expectation (a Path) is a directory having the provided entries. That means that there is a file system entry at the location the Path points to and that it is a directory. Furthermore, every argument string resolved against the subject yields an existing file system entry.
Expects that the subject of this
expectation (a Path) has the same binary content as targetPath.
Expects that the subject of this
expectation (a Path) has the same textual content as targetPath taking the given encodings into account (UTF-8 if none given).
Expects that the subject of this
expectation (a CharSequence) starts with expected.
Expects that invoking the subject (a function with arity 0, i.e. without arguments) throws a TExpected (the same type or a sub-type).
Expects that invoking the subject (a function with arity 0, i.e. without arguments) throws a TExpected (the same type or a sub-type) and that it holds all assertions the given assertionCreator creates.
Expects that the property Map.Entry.value of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Finishes the specification of the sophisticated to contain
expectation where the expected value shall be searched (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the expected object shall be searched, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the expected value shall be searched (ignoring case), using a non-disjoint search where it needs to be contained at least once.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain the expected value.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the expected value.
Expects that the property Map.keys of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Finishes the specification of the sophisticated to contain
expectation where the expected value as well as the otherExpected values shall be searched (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the expected value as well as the otherExpected values shall be searched, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the expected value as well as the otherExpected values shall be searched (ignoring case), using a non-disjoint search where each need to be contained at least once.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain the expected value as well as the otherExpected values where it does not matter in which order they appear.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the expected value as well as the otherExpected values where it does not matter in which order.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the expected value as well as the otherExpected values in the specified order.
Uses the given options to override (parts) of the existing configuration.
Uses the given configuration-lambda to create a FeatureExpectOptions which in turn is used to re-define (parts) of the existing configuration.
Uses the given configuration-lambda to create an RootExpectOptions which in turn is used to re-define (parts) of the existing configuration.
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).
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).
Expects that the property LocalDateTime.year of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property LocalDate.yearof the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property ZonedDateTime.year of the subject of this
expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this
expectation.