Package-level declarations
Contains API which provides an infix API in English and which has its design focus on usability in conjunction with code completion.
Contains API which provides an infix API in English and which has its design focus on usability in conjunction with code completion.
Types
A helper construct to allow expressing expectations about a path being a directory. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
A helper construct to allow expressing expectations about a path being an empty directory. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
A helper construct to allow expressing expectations about a path being a regular file. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
A helper construct to allow expressing expectations about a path being a symbolic link. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
A helper construct to allow expressing expectations about a path being executable. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
A helper construct to allow expressing expectations about iterable contains no duplicates. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
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.
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.
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
Can be used to separate single assertions.
Can be used to create a group of sub assertions when using the fluent API.
Defines that the constraint "only
the specified entries exist in the IterableLike" shall be applied to this sophisticated to contain in order
IterableLike expectation.
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>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject as List.
Turns Expect<E, T : Sequence<E>>
into Expect<List<E>
.
Turns Expect<Array<E>>
into Expect<List<E>>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject as List.
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>>
.
Turns Expect<Date>
into Expect<LocalDateTime>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject as LocalDateTime.
Turns Expect<File>
into Expect<Path>
.
Expects that the subject of this
expectation holds all assertions the given assertionCreator creates for the subject as Path.
Helper function to create a SuccessWithCreator based on the given assertionCreator.
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.
Defines that the constraint "only
the specified entries exist in the IterableLike" shall be applied to this sophisticated to contain
in IterableLike expectation.
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.
Helper function for has to create DirectoryEntries with the provided entry and the otherEntries.
Helper function to create a WithInAnyOrderOnlyReportingOptions wrapping an IterableLike based on the given iterableLike and the given reportOptionsInAnyOrderOnly-configuration-lambda.
Helper function to create a WithInOrderOnlyReportingOptions wrapping an IterableLike based on the given iterableLike and the given reportOptionsInOrderOnly-configuration-lambda.
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.
Helper function to create a KeyValues based on the given keyValue and otherKeyValues -- allows expressing Pair<K, (Expect<V>.() -> Unit)?>, vararg Pair<K, (Expect<V>.() -> Unit)?>
.
Helper function to create an Entries based on the given assertionCreatorOrNull and otherAssertionCreatorsOrNulls -- allows expressing { }, vararg { }
.
Helper function to create a WithInAnyOrderOnlyReportingOptions wrapping an Entries based on the given assertionCreatorOrNull and otherAssertionCreatorsOrNulls as well as the given reportOptionsInAnyOrderOnly-configuration-lambda -- allows expressing { }, vararg { }, reportOptionsInAnyOrderOnly = { ... }
.
Helper function to create a WithInOrderOnlyReportingOptions wrapping an Entries based on the given assertionCreatorOrNull and otherAssertionCreatorsOrNulls as well as the given reportOptionsInOrderOnly-configuration-lambda -- allows expressing { }, vararg { }, reportOptionsInOrderOnly = { ... }
.
Helper function to create a WithInOrderOnlyReportingOptions wrapping an MapLike based on the given mapLike and the given reportOptionsInOrderOnly-configuration-lambda.
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 KeyWithValueCreator.key and a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.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 KeyWithValueCreator.key and a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.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.
Creates a MetaFeature using the given provider and description.
Extracts a feature out of the current subject of this
expectation using the given FeatureWithCreator.extractor, creates a new Expect for it, applies an expectation-group based on the given FeatureWithCreator.assertionCreator for the feature and returns the initial Expect with the current subject.
Extracts a feature out of the current subject of this
expectation using the given Feature.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, based on the given MetaFeatureOptionWithCreator creates a new Expect for it, applies an expectation-group based on the given MetaFeatureOptionWithCreator.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, 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 property Pair.first 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 that the element at that position holds all assertions the given IndexWithCreator.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 KeyWithCreator.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.
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 search 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.
Finishes the specification of the sophisticated to contain
expectation where the expected Order.firstGroup as well as the Order.secondGroup and optionally Order.otherExpectedGroups of values need to be contained in IterableLike in the specified order whereas the values within the groups can occur in any order.
Defines that the search behaviour "find entries in any order
in the IterableLike" shall be applied to this sophisticated to contain
in IterableLike expectation.
Finishes the specification of the sophisticated to contain
expectation where the expected Order.firstGroup as well as the Order.secondGroup and optionally Order.otherExpectedGroups of identification lambdas, identifying an entry, need to be contained in IterableLike in the specified order whereas the identification lambdas within the groups can occur in any order.
Helper function to create an IndexWithCreator based on the given index and assertionCreator.
Defines that the search behaviour "find entries in order
in the IterableLike" shall be applied to this sophisticated to contain
in IterableLike expectation.
Extracts a feature out of the current subject of this
expectation with the help of the given extractorWithCreator.extractor, creates a new Expect for it, applies an expectation-group based on the given extractorWithCreator.assertionCreator for the feature and returns the initial Expect with the current subject.
Helper function to create an KeyWithCreator based on the given key and assertionCreator.
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.
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.
Helper function to create a KeyWithValueCreator based on the given key and valueAssertionCreatorOrNull -- allows expressing Pair<K, (Expect<V>.() -> Unit)?>
.
Helper function to create a KeyValues based on the given keyValue and otherKeyValues -- allows expressing Pair<K, (Expect<V>.() -> Unit)?>, vararg Pair<K, (Expect<V>.() -> Unit)?>
.
Finishes the specification of the sophisticated to contain
expectation where the given Regex are expected to have a match, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given Regex is expected to have a match.
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 values's toString representation using a non-disjoint search.
Expects that the property Throwable.message of the subject of this
expectation is not null and contains expected's toString representation 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 (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 (a Path) is not executable; meaning that there is a file system entry at the location the Path points to and that the current thread does not have the permission to execute it.
Expects that the subject of this
expectation (a Path) does not exist; meaning that there is no file system entry at the location the Path points to.
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 one of the given types (the same type or a sub-type).
Expects that the subject of this
expectation is not one of the given types (the same type or a sub-type).
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 give a hint to the user/guide the user to use toBeBeforeOrTheSamePointInTimeAs 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 give a hint to the user/guide the user to use toBeAfterOrTheSamePointInTimeAs instead.
Expects that the subject of this
expectation (a CharSequence) does not contain the toString representation of the given values.
Starts a sophisticated toContain
assertion building process based on this Expect and already chooses a NotCheckerStep.
Expects that the subject of this
expectation (a CharSequence) does not contain expected's toString representation.
Expects that the subject of this
expectation (an Iterable) has at least one element and that it does not contain the expected value.
Expects that the subject of this
expectation (an Iterable) has at least one element and that it does not contain the expected values.
Starts a sophisticated toContain
assertion building process based on this Expect and already chooses a NotCheckerStep.
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 (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 calling the subject (a lambda 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 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.
Helper function to create a MetaFeatureOptionWithCreator based on a lambda with MetaFeatureOption receiver (has to return a MetaFeature) and an assertionCreator.
Creates a Feature using the given extractor and description.
Helper function to create a KeyWithCreator based on the given reason and assertionCreator.
Helper function to create a FeatureWithCreator based on a KFunction1 + assertionCreator.
Helper function to create a Feature based on a KFunction2 + arguments.
Helper function to create a FeatureWithCreator based on a KProperty1 + assertionCreator.
Helper function to create a FeatureWithCreator based on a KFunction2 + arguments + assertionCreator.
Helper function to create a Feature based on a KFunction3 + arguments.
Helper function to create a FeatureWithCreator based on a KFunction3 + arguments + assertionCreator.
Helper function to create a Feature based on a KFunction4 + arguments.
Helper function to create a FeatureWithCreator based on a KFunction4 + arguments + assertionCreator.
Helper function to create a Feature based on a KFunction5 + arguments.
Helper function to create a FeatureWithCreator based on a KFunction5 + arguments + assertionCreator.
Helper function to create a Feature based on a KFunction6 + arguments.
Helper function to create a FeatureWithCreator based on a KFunction6 + arguments + assertionCreator.
Helper function to create an Order based on the given firstGroup, secondGroup and otherExpectedGroups.
Helper function to create a WithInOrderOnlyReportingOptions wrapping a WithInAnyOrderOnlyReportingOptions which wraps in turn an Order based on the given firstGroup, secondGroup and otherExpectedGroups as well as the given reportInGroup-configuration-lambda for the WithInAnyOrderOnlyReportingOptions.
Helper function to create a WithInOrderOnlyReportingOptions wrapping a WithInAnyOrderOnlyReportingOptions which wraps in turn an Order based on the given firstGroup, secondGroup and otherExpectedGroups as well as the given report-configuration-lambda for the WithInOrderOnlyReportingOptions.
Helper function to create a WithInOrderOnlyReportingOptions wrapping a WithInAnyOrderOnlyReportingOptions which wraps in turn an Order based on the given firstGroup, secondGroup and otherExpectedGroups as well as the given report-configuration-lambda for the WithInOrderOnlyReportingOptions and the reportInGroup-configuration-lambda for the WithInAnyOrderOnlyReportingOptions.
Helper function to create a Pairs based on the given pair and otherPairs -- allows expressing Pair<K, V>, vararg Pair<K, V>
.
Helper function to create a PathWithCreator based on the given path and assertionCreator.
Helper function to create a PresentWithCreator based on the given assertionCreator.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression pattern is 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 is 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 is expected to have at least one match (ignoring case), using a non-disjoint search.
Helper function to create a RegexPatterns based on the given pattern and otherPatterns -- allows expressing String, vararg String
which are treated as regex patterns.
Expects that PathWithCreator.path resolves against this Path, that the resolved Path holds all assertions the given PathWithCreator.assertionCreator creates for it and returns an Expect for the current subject of this
expectation.
Expects that the property Pair.second 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 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.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression patterns are expected to have a match (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the values shall be searched (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression patterns are expected to have a match, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given values shall be searched, using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the given regular expression patterns are expected to have at least one match (ignoring case), using a non-disjoint search.
Finishes the specification of the sophisticated to contain
expectation where the 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 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 an entry for each in entries where it does not matter in which order they appear -- an entry is contained if it either holds all assertions entries.assertionCreatorOrNull creates or needs to be null
in case entries.assertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the expected 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 and all elements of the given IterableLike in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the expected values in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the given entries where it does not matter in which order they appear -- an entry is contained if it either holds all assertions entries.assertionCreatorOrNull creates or it needs to be null
in case entries.assertionCreatorOrNull is defined as null
Finishes the specification of the sophisticated to contain
expectation where the subject (an IterableLike) needs to contain only the given entries in the specified order -- an entry is contained if it either holds all assertions entries.assertionCreatorOrNull creates or it needs to be null
in case entries.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 key-value pairs 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 key-value pairs 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 key-value pairs in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given pairs in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only and all entries of the given MapLike in the specified order.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given entries where it does not matter in which order they appear -- an entry is contained if it has a key as defined by keyValue's KeyWithValueCreator.key and a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain the given keyValues where it does not matter in which order they appear -- an entry is contained if it has a key as defined by keyValue's KeyWithValueCreator.key and a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
.
Finishes the specification of the sophisticated to contain
expectation where the subject (a MapLike) needs to contain only the given entries in the specified order -- an entry is contained if it has a key as defined by keyValue's KeyWithValueCreator.key and a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
.
Expects that the subject of this
expectation (a CharSequence) CharSequence.kotlin.text.isEmpty.
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 SuccessWithCreator.assertionCreator creates.
Expects that the subject of this
expectation (a Collection) is an empty Collection.
Expects that the subject of this
expectation (a Path) is a directory; meaning that there is a file system entry at the location the Path points to and that is a directory.
Expects that the subject of this
expectation (a Path) is a file; meaning that there is a file system entry at the location the Path points to and that is a regular file.
Expects that the subject of this
expectation (a Path) is a symbolic link; meaning that there is a file system entry at the location the Path points to and that is a symbolic link.
Expects that the subject of this
expectation (a Path) is an absolute path; meaning that the Path specified in this instance starts at the file system root.
Expects that the subject of this
expectation (a Path) is an empty directory; meaning that there is a file system entry at the location the Path points to and that is an empty directory.
Expects that the subject of this
expectation (a Path) is executable; meaning that there is a file system entry at the location the Path points to and that the current thread has the permission to execute it.
Expects that the subject of this
expectation (a Path) exists; meaning that there is a file system entry at the location the Path points to.
Expects that the subject of this
expectation (a Path) is readable; meaning that there is a file system entry at the location the Path points to and that the current thread has the permission to read from it.
Expects that the subject of this
expectation (a Path) is a relative path; meaning that the Path specified in this instance does not start at the file system root.
Expects that the subject of this
expectation (a Path) is writable; meaning that there is a file system entry at the location the Path points to and that the current thread has the permission to write to it.
Expects that the subject of this
expectation (an Optional) is empty (not present).
Expects that the subject of this
expectation (an Optional) is present and that the wrapped value of type E holds all assertions the given PresentWithCreator.assertionCreator creates.
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 before or equals 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 before or equals 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 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 or equals 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. The expected parameter needs to be in the form of yyyy-mm-dd or else an exception will be thrown.
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 is equal to expected where the comparison is carried out with Comparable.compareTo.
Deprecated overload which shall give a hint to the user/guide the user 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 give a hint to the user/guide the user 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 give a hint to the user/guide the user 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 give a hint to the user/guide the user 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 give a hint to the user/guide the user to use toBeBeforeOrTheSamePointInTimeAs instead.
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 before or equals the expected given as String.
Expects that the subject of this
expectation (a CharSequence) contains a sequence which matches the given regular expression patterns, using a non-disjoint search.
Expects that the subject of this
expectation (a CharSequence) contains a sequence which matches the given regular expression regexPatterns, using a non-disjoint search.
Expects that the subject of this
expectation (a CharSequence) contains the toString representation of the given values using a non-disjoint search.
Starts a sophisticated toContain
assertion building process based on this Expect.
Expects that the subject of this
expectation (a CharSequence) contains the expected's toString representation.
Expects that the subject of this
expectation (a CharSequence) contains a sequence which matches the given regular expression pattern.
Expects that the subject of this
expectation (an Iterable) contains an entry holding the assertions created by entries.assertionCreatorOrNull or an entry which is null
in case entries.assertionCreatorOrNull is defined as null
-- likewise an entry (can be the same) is searched for each of the entries.otherAssertionCreatorsOrNulls.
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 the subject of this
expectation (a Map) contains for each key-value pair in pairs, a key as defined by that entry's Pair.first with a corresponding value as defined by entry's Pair.second.
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
Expects that the subject of this
expectation (a Map) contains for each KeyWithValueCreator in keyValues, a key as defined by KeyWithValueCreator.key with a corresponding value which either holds all assertions KeyWithValueCreator's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
Expects that the subject of this
expectation (a Map) contains a key as defined by keyValue's KeyWithValueCreator.key with a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
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 the expected values in the defined order.
Expects that the subject of this
expectation (an Iterable) contains only an entry holding the assertions created by entries.t.assertionCreatorOrNull or null
in case entries.t.assertionCreatorOrNull is defined as null
and likewise an additional entry for each entries.t.otherAssertionCreatorsOrNulls (if given) whereas the entries have to appear in the defined order.
Expects that the subject of this
expectation (an Iterable) contains only an entry holding the assertions created by entries.assertionCreatorOrNull or null
in case entries.assertionCreatorOrNull is defined as null
and likewise an additional entry for each entries.otherAssertionCreatorsOrNulls (if given) whereas the entries have to appear in the defined order.
Expects that the subject of this
expectation (an Iterable) contains only an entry holding the assertions created by entries.t.assertionCreatorOrNull or null
in case entries.t.assertionCreatorOrNull is defined as null
and likewise an additional entry for each entries.t.otherAssertionCreatorsOrNulls (if given) whereas the entries have to appear in the defined order.
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 elements of expectedIterableLike in same order
Expects the subject of this
expectation (a Map) contains only (in any order) for each key-value pair in pairs, a key as defined by that entry's Pair.first with a corresponding value as defined by entry's Pair.second.
Expects that the subject of this
expectation (a Map) contains only one entry with a key as defined by keyValuePair's Pair.first and a corresponding value as defined by keyValuePair's Pair.second
Expects that the subject of this
expectation (a Map) contains only (in any order) for each KeyWithValueCreator in keyValues, a key as defined by KeyWithValueCreator.key with a corresponding value which either holds all assertions KeyWithValueCreator's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
Expects that the subject of this
expectation (a Map) contains only one entry with a key as defined by keyValue's KeyWithValueCreator.key with a corresponding value which either holds all assertions keyValue's KeyWithValueCreator.valueAssertionCreatorOrNull creates or needs to be null
in case KeyWithValueCreator.valueAssertionCreatorOrNull is defined as null
Expects that the subject of this
expectation (a CharSequence) contains a sequence which matches the given regular expression pattern.
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 (an Iterable) has at least one element.
Expects that the subject of this
expectation (an Iterator) has a next element.
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 (an Iterable) has at least one element and that either every element holds all assertions created by the assertionCreatorOrNull or that all elements are null
in case assertionCreatorOrNull is defined as null
.
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 (an Iterable) has at least one element and that it either does not contain a single entry which holds all assertions created by assertionCreatorOrNull or that it does not contain a single entry which is null
in case assertionCreatorOrNull is defined as null
.
Expects that the subject of this
expectation (a Collection) has the given expected size.
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 PathWithEncoding.path in the given pathWithEncoding with the specified encodings.
Expects that the subject of this
expectation (a Path) has the same textual content as targetPath (using UTF-8 for encoding)
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.
Helper function to create a Values based on the given value and otherValues -- allows expressing T, vararg T
.
Helper function to create a WithInOrderOnlyReportingOptions wrapping a Values based on the given value and otherValues as well as the given reportOptionsInAnyOrderOnly-configuration-lambda -- allows expressing T, vararg T, reportOptionsInAnyOrderOnly = { ... }
.
Helper function to create a WithInOrderOnlyReportingOptions wrapping a Values based on the given value and otherValues as well as the given reportOptionsInOrderOnly-configuration-lambda -- allows expressing T, vararg T, reportOptionsInOrderOnly = { ... }
.
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.
Helper function to create a PathWithEncoding based on the given path and the sourceCharset and targetCharset where UTF-8 is used as default if one encoding is missing.
A filler word to emphasise that the next step defines the order within expected groups of values.
Uses the given options to override (parts) of the existing configuration.
Uses the given configuration-lambda to create an 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 override (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.