diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 91f76ffb0..eeb4f1511 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -96,7 +96,16 @@ Please write a comment such as `I am working on this` in the issue,
this way we can assign the task to you (so that others know there is already someone working on the issue)
and it gives us the chance to have a look at the description again and revise if necessary.
+*Architecture*
+
+The following diagram illustrates the current architecture of Atrium and what it meant to add a shortcut for `Throwable.cause`. Many times, especially in [good first issues](https://github.com/robstoll/atrium/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) we refer to this names and they are also reflected in the directory structure of the project.
+
+
+
+
+*Git*
+
Dealing with Git for the first time? Here are some recommendations for how to set up Git when working on an issue:
- create a new branch for the issue using `git checkout -b ` (preferrably, the branch name
should be descriptive of the issue or the change being made, e.g `#108-path-exists`.) Working
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 571dedf98..90050329f 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,4 +1,4 @@
-----
+______________________________________
I confirm that I have read the [Contributor Agreements v1.0](https://github.com/robstoll/atrium/blob/master/.github/Contributor%20Agreements%20v1.0.txt), agree to be bound on them and confirm that my contribution is compliant.
diff --git a/.github/workflows/java-windows.yml b/.github/workflows/java-windows.yml
index 4071cbd02..eeb4911ad 100644
--- a/.github/workflows/java-windows.yml
+++ b/.github/workflows/java-windows.yml
@@ -18,9 +18,14 @@ jobs:
java-version: ${{ matrix.java_version }}
- name: Build buildNonDeprecatedJvm
run: ./gradlew buildNonDeprecatedJvm
+ env:
+ CI: true
- name: build sample atrium+spek project
run: samples\jvm\spek\gradlew -p samples\jvm\spek build
- name: Build sample atrium+junit5 project
run: samples\jvm\junit5\gradlew -p samples\jvm\junit5 build
+
+ - name: Build sample atrium+mpp kotlin project
+ run: samples\multiplatform\gradlew -p samples\multiplatform build
diff --git a/.github/workflows/validate-gradle-wrapper.yml b/.github/workflows/validate-gradle-wrapper.yml
new file mode 100644
index 000000000..cbf839cf4
--- /dev/null
+++ b/.github/workflows/validate-gradle-wrapper.yml
@@ -0,0 +1,10 @@
+name: "Validate Gradle Wrapper"
+on: [push, pull_request]
+
+jobs:
+ validation:
+ name: "Validation"
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: gradle/wrapper-validation-action@v1
diff --git a/.travis.yml b/.travis.yml
index 2ee46bd82..de7c23f23 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,6 +32,7 @@ jobs:
script:
- samples/jvm/spek/gradlew -p ./samples/jvm/spek build
- samples/jvm/junit5/gradlew -p ./samples/jvm/junit5 build
+ - samples/multiplatform/gradlew -p ./samples/multiplatform/ build
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
diff --git a/LICENSE.txt b/LICENSE.txt
index fd1d5d16b..74a0faa17 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-Atrium © Copyright Robert Stoll 2017, 2019
+Atrium © Copyright Robert Stoll 2017, 2020
EUROPEAN UNION PUBLIC LICENCE v. 1.2
EUPL © the European Union 2007, 2016
diff --git a/README.md b/README.md
index 26ebe9edd..45d513af0 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,21 @@
+
+
[](https://bintray.com/robstoll/tutteli-jars/atrium/_latestVersion "Download from Bintray")
[](https://joinup.ec.europa.eu/collection/eupl/eupl-text-11-12 "License")
[](https://kotlinlang.slack.com/messages/C887ZKGCQ "See invitation link under section FAQ")
[](https://travis-ci.org/robstoll/atrium/branches)
[](https://github.com/robstoll/atrium/actions/)
-[](https://codecov.io/github/robstoll/atrium/branch/master)
+[](https://codecov.io/github/robstoll/atrium/branch/master)
[](https://github.com/robstoll/atrium/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22 "Ask in slack for help")
+
+
+
#
Atrium is an open-source multiplatform assertion library for Kotlin with support for JVM, JS and Android.
It is designed to support multiple [APIs](#api-styles), different error reporting styles and [Internationalization](#internationalization-1) (i18n).
@@ -20,10 +30,10 @@ Atrium currently provides two [API Styles](#api-styles):
pure fluent and infix where both of them have their design focus on usability in conjunction with code completion functionality provided by your IDE.
See [Examples](#examples) below to get a feel for how you could benefit from Atrium.
-----
+---
❗ You are taking a *sneak peek* at the next version.
Please have a look at the README of the git tag in case you are looking for the documentation of the corresponding version.
-For instance, the [README of v0.9.0](https://github.com/robstoll/atrium/tree/v0.9.0/README.md).
+For instance, the [README of v0.10.0](https://github.com/robstoll/atrium/tree/v0.10.0/README.md).
----
@@ -63,7 +73,6 @@ For instance, the [README of v0.9.0](https://github.com/robstoll/atrium/tree/v0.
- [KDoc - Code Documentation](#kdoc---code-documentation)
- [Known Limitations](#known-limitations)
- [FAQ](#faq)
-- [Kotlin Bugs](#kotlin-bugs)
- [Roadmap](#roadmap)
- [Contributors and contribute](#contributors-and-contribute)
- [Sponsors](#sponsors)
@@ -79,7 +88,7 @@ but can also be retrieved directly from [bintray](https://bintray.com/robstoll/t
*gradle*:
```
buildscript {
- ext { atrium_version='0.9.0' }
+ ext { atrium_version='0.10.0' }
}
repositories {
mavenCentral()
@@ -103,6 +112,7 @@ You can enable them as follows:
dependencies {
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-jdk8:$atrium_version"
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3:$atrium_version"
+ testRuntimeOnly "ch.tutteli.atrium:atrium-domain-robstoll-kotlin_1_3:$atrium_version"
}
```
@@ -110,7 +120,7 @@ dependencies {
click to see how the setup for the infix API looks like
-The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.9.0.
+The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.10.0.
[Your help](https://github.com/robstoll/atrium/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22good+first+issue%22++new+infix)
in bringing the new infix API forward is appreciated.
@@ -147,7 +157,7 @@ That is all, you are all set. Jump to [Examples](#examples) which shows how to u
```
buildscript {
- ext { atrium_version='0.9.0' }
+ ext { atrium_version='0.10.0' }
}
repositories {
mavenCentral()
@@ -193,6 +203,7 @@ You can enable them as follows:
```
dependencies {
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3-js:$atrium_version"
+ testRuntimeOnly "ch.tutteli.atrium:atrium-domain-robstoll-kotlin_1_3-js:$atrium_version"
}
```
@@ -200,7 +211,7 @@ dependencies {
click to see how the setup for the infix API looks like
-The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.9.0.
+The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.10.0.
[Your help](https://github.com/robstoll/atrium/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22good+first+issue%22++new+infix)
in bringing the new infix API forward is appreciated.
@@ -506,7 +517,7 @@ expected that subject: Person(firstName=Robert, lastName=Stoll, isStudent=false)
We are sorry that the syntax is not yet the nicest one.
We admit that one has to get used to it first and that is a pity.
-Yet, it is due to many [Kotlin Bugs](#kotlin-bugs) standing in the way --
+Yet, it is due to many [Kotlin Bugs](https://github.com/robstoll/atrium/wiki/Kotlin-Bugs-and-missing-features) standing in the way --
we hope we can provide a better API once Kotlin 1.4 is out (the new type inference respectively).
`feature` has several overloads, we are looking at the one expecting a lambda in which you have to provide a `MetaFeature`.
@@ -581,7 +592,7 @@ if the property as such is renamed (e.g., as part of an IDE refactoring).
As you can see, you would need to keep the property name and the name of the assertion function in sync to be meaningful
(otherwise one gets quickly confused or has to remember two names for the same thing).
-Writing assertion functions for methods is a different story though, especially due to [overload bugs in Kotlin](#kotlin-bugs).
+Writing assertion functions for methods is a different story though, especially due to [overload bugs in Kotlin](https://github.com/robstoll/atrium/wiki/Kotlin-Bugs-and-missing-features).
Also, code completion is not yet as good as it should be when it comes to methods.
Last but not least, in case it is not always safe to call a method (e.g. `List.get` => IndexOutOfBound) then it makes
sense to wrap it into an assertion function and use `ExpectImpl.feature.extractor` instead.
@@ -712,7 +723,7 @@ Also this version of `feature` provides to kind of overloads, one without and on
### Ambiguity Problems
Unfortunately there are several Kotlin bugs when it comes to overloading, especially in conjunction with `KFunction`
-(see [Kotlin Bugs](#kotlin-bugs) and upvote in case you run into one).
+(see [Kotlin Bugs](https://github.com/robstoll/atrium/wiki/Kotlin-Bugs-and-missing-features) and upvote in case you run into one).
However, Atrium provides alternative functions next to `f` within the `MetaFeature`-provider-lambda to disambiguate the situation.
Use `p` for properties and `f0` to `f5` for methods.
Likely you need to specify the type parameters manually as Kotlin is not able to infer them correctly.
@@ -1460,7 +1471,7 @@ expected that subject: "calling myFun with ..." <1234789>
The example should be self explanatory.
One detail to note though is the usage of `subExpect`.
-It is a helper function which circumvents certain [Kotlin type inference bugs](#kotlin-bugs) (upvote them please).
+It is a helper function which circumvents certain [Kotlin type inference bugs](https://github.com/robstoll/atrium/wiki/Kotlin-Bugs-and-missing-features) (upvote them please).
Writing the same as `mapOf.() -> Unit>( 1 to { ... } )` would not work as the type for a lambda
involved in a `Pair` is not (yet) inferred correctly by Kotlin.
@@ -2425,49 +2436,6 @@ Deprecated APIs:
See [Ambiguity Problems](#ambiguity-problems) and [Property does not exist](#property-does-not-exist).
-# Kotlin Bugs
-The following issues hinder Atrium to progress in certain areas or they are the reason that we cannot use Atrium as intended in all cases.
-Please upvote them (especially if you encounter them yourself):
-- [Symbol is declared in unnamed module](https://youtrack.jetbrains.com/issue/KT-35343)
-- [Gradle runtimeOnly bug](https://youtrack.jetbrains.com/issue/KT-21685) (reason that you see functions from package cc.en_GB when using cc.infix.en_GB)
-- [navigate to source or show KDoc for overloaded extension function](https://youtrack.jetbrains.com/issue/KT-24836)
-- [Lower bounds](https://youtrack.jetbrains.com/issue/KT-209), i.a. that functions intended for nullable subject do not show up on non-nullable subjects.
-- [CTRL+P shows extension functions of unrelated type](https://youtrack.jetbrains.com/issue/KT-29133)
-- [Expose @OnlyInputTypes to restrict e.g. toBe](https://youtrack.jetbrains.com/issue/KT-13198)
-- [Type inference KFunction overload bug 1](https://youtrack.jetbrains.com/issue/KT-17340)
-- [Type inference KFunction overload bug 2](https://youtrack.jetbrains.com/issue/KT-19884)
-- [Type inference KProperty/KFunction ambiguity bug](https://youtrack.jetbrains.com/issue/KT-17341)
-- [Type inference fails to infer T of KFunction0 for most types](https://youtrack.jetbrains.com/issue/KT-29515)
-- [Type inference type parameter bug](https://youtrack.jetbrains.com/issue/KT-12963)
-- [Type inference return type bug](https://youtrack.jetbrains.com/issue/KT-24918)
-- [Type inference out type parameter bug](https://youtrack.jetbrains.com/issue/KT-18401)
-- [Type inference explicit type and overloads](https://youtrack.jetbrains.com/issue/KT-23791)
-- [Type inference Pair with receiver type](https://youtrack.jetbrains.com/issue/KT-29129)
-- [Type inference unable to infer primitive type](https://youtrack.jetbrains.com/issue/KT-33290)
-- [Overload resolution null bug](https://youtrack.jetbrains.com/issue/KT-6591) (reason why you need to specify what type `null` is in the infix API when using `assert(listOf(...)) contains null`)
-- [Extension resolution null as receiver bug](https://youtrack.jetbrains.com/issue/KT-30496) (reason why you need to define that `null to null` is a Pair in the infix API)
-- [Overload resolution nullable bug](https://youtrack.jetbrains.com/issue/KT-23768)
-- [Overload resolution primitive type bug](https://youtrack.jetbrains.com/issue/KT-24230)
-- [Overload resolution function type bug](https://youtrack.jetbrains.com/issue/KT-23883)
-- [Overload resolution generic upper bound bug](https://youtrack.jetbrains.com/issue/KT-30235)
-- [Overload ambiguity between val and fun](https://youtrack.jetbrains.com/issue/KT-32958)
-- [false positive: remove explicit type arguments](https://youtrack.jetbrains.com/issue/KT-32869)
-- [Wrong JS generated in case of name clash](https://youtrack.jetbrains.com/issue/KT-33294)
-- [forbid function types as substitute of reified types ](https://youtrack.jetbrains.com/issue/KT-27846)
-- [forbid parameterised types as substitute of reified types](https://youtrack.jetbrains.com/issue/KT-27826)
-- [ReplaceWith does not add type parameter](https://youtrack.jetbrains.com/issue/KT-33685)
-- [Wrong warning about predetermined type parameter](https://youtrack.jetbrains.com/issue/KT-34257)
-
-And some features which would be handy
-- [hide function with deprecation level error in code completion](https://youtrack.jetbrains.com/issue/KT-25263)
-- [Method reference without `this`](https://youtrack.jetbrains.com/issue/KT-22920)
-- [Infix function call with type parameters](https://youtrack.jetbrains.com/issue/KT-21593)
-- [Extensibility for infix API](https://youtrack.jetbrains.com/issue/KT-27659)
-- [Summarising overloads in code completion](https://youtrack.jetbrains.com/issue/KT-25079)
-- [vararg for lambdas](https://youtrack.jetbrains.com/issue/KT-24287)
-- [delegate with inline modifier](https://youtrack.jetbrains.com/issue/KT-23241)
-
-
# Roadmap
The roadmap is maintained at [atrium-roadmap](https://github.com/robstoll/atrium-roadmap).
diff --git a/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/anyAssertions.kt b/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/anyAssertions.kt
index b022fdf6c..32ac01e50 100644
--- a/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/anyAssertions.kt
+++ b/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/anyAssertions.kt
@@ -164,14 +164,5 @@ val AssertionPlant.and: AssertionPlant get() = this
*
* @return This plant to support a fluent API.
*/
-@Deprecated(
- "Switch from Assert to Expect; will be removed with 1.0.0",
- ReplaceWith(
- "this.asExpect().and(assertionCreator).asAssert()",
- "ch.tutteli.atrium.domain.builders.migration.asExpect",
- "ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.and"
- )
-)
infix fun AssertionPlant.and(assertionCreator: Assert.() -> Unit) =
addAssertionsCreatedBy(assertionCreator)
diff --git a/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/arrayAssertions.kt b/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/arrayAssertions.kt
index 1e80672c4..3520f501b 100644
--- a/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/arrayAssertions.kt
+++ b/apis/cc-en_GB/atrium-api-cc-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/cc/en_GB/arrayAssertions.kt
@@ -17,10 +17,10 @@ import kotlin.jvm.JvmName
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
fun Assert>.asIterable(): Assert> =
@@ -38,10 +38,10 @@ fun Assert>.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
fun Assert>.asIterable(assertionCreator: Assert>.() -> Unit): Assert> =
@@ -59,10 +59,10 @@ fun Assert>.asIterable(assertionCreator: Assert>.()
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("byteArrAsIterable")
@@ -81,10 +81,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("byteArrAsIterable")
@@ -103,10 +103,10 @@ fun Assert.asIterable(assertionCreator: Assert>.() ->
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("charArrAsIterable")
@@ -125,10 +125,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("charArrAsIterable")
@@ -147,10 +147,10 @@ fun Assert.asIterable(assertionCreator: Assert>.() ->
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("shortArrAsIterable")
@@ -169,10 +169,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("shortArrAsIterable")
@@ -191,10 +191,10 @@ fun Assert.asIterable(assertionCreator: Assert>.() -
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("intArrAsIterable")
@@ -212,10 +212,10 @@ fun Assert.asIterable(): Assert> = ExpectImpl.changeSubj
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("intArrAsIterable")
@@ -234,10 +234,10 @@ fun Assert.asIterable(assertionCreator: Assert>.() -> Un
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("longArrAsIterable")
@@ -256,10 +256,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("longArrAsIterable")
@@ -278,10 +278,10 @@ fun Assert.asIterable(assertionCreator: Assert>.() ->
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("floatArrAsIterable")
@@ -300,10 +300,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("floatArrAsIterable")
@@ -322,10 +322,10 @@ fun Assert.asIterable(assertionCreator: Assert>.() -
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("doubleArrAsIterable")
@@ -344,10 +344,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("doubleArrAsIterable")
@@ -366,10 +366,10 @@ fun Assert.asIterable(assertionCreator: Assert>.()
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert()",
+ "this.asExpect().asList().asAssert()",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("boolArrAsIterable")
@@ -388,10 +388,10 @@ fun Assert.asIterable(): Assert> =
@Deprecated(
"Switch from Assert to Expect; will be removed with 1.0.0",
ReplaceWith(
- "this.asExpect().asIterable().asAssert(assertionCreator)",
+ "this.asExpect().asList().asAssert(assertionCreator)",
"ch.tutteli.atrium.domain.builders.migration.asExpect",
"ch.tutteli.atrium.domain.builders.migration.asAssert",
- "ch.tutteli.atrium.api.fluent.en_GB.asIterable"
+ "ch.tutteli.atrium.api.fluent.en_GB.asList"
)
)
@JvmName("boolArrAsIterable")
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-android/build.gradle b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-android/build.gradle
index 7997dbfbe..fc012fbfc 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-android/build.gradle
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-android/build.gradle
@@ -5,6 +5,7 @@ dependencies {
api prefixedProject('domain-builders-android')
testImplementation prefixedProject('verbs-internal-android')
+ testImplementation prefixedProject('api-infix-en_GB-android')
}
srcAndResourcesFromJvmProject(project)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/build.gradle b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/build.gradle
index 6912f5606..ddeca8877 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/build.gradle
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/build.gradle
@@ -13,6 +13,7 @@ dependencies {
api prefixedProject('domain-builders-jvm')
testImplementation prefixedProject('verbs-internal-jvm')
+ testImplementation prefixedProject('api-infix-en_GB-jvm')
}
//TODO should not be necessary https://youtrack.jetbrains.com/issue/KT-28124
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/AnyAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/AnyAssertionsSpec.kt
index 7f99a86a3..cb4b15dab 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/AnyAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/AnyAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.creating.AssertionPlantNullable
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class AnyAssertionsSpec : ch.tutteli.atrium.spec.integration.AnyAssertionsSpec(
AssertionVerbFactory,
AnyAssertionsSpecFunFactory(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ArrayAsIterableAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ArrayAsIterableAssertionsSpec.kt
index 1534eb02f..43a55beaf 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ArrayAsIterableAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ArrayAsIterableAssertionsSpec.kt
@@ -4,6 +4,7 @@ package ch.tutteli.atrium.api.cc.infix.en_GB
import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class ArrayAsIterableAssertionsSpec : ch.tutteli.atrium.spec.integration.ArrayAsIterableAssertionsSpec(
AssertionVerbFactory,
"asIterable",
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BigDecimalAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BigDecimalAssertionsSpec.kt
index 1b6f4ba2f..71857e441 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BigDecimalAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BigDecimalAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.creating.Assert
import java.math.BigDecimal
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class BigDecimalAssertionsSpec : ch.tutteli.atrium.spec.integration.BigDecimalAssertionsSpec(
AssertionVerbFactory,
toBePair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BooleanAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BooleanAssertionsSpec.kt
index fd941b10d..83f4b0812 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BooleanAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/BooleanAssertionsSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.creating.Assert
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class BooleanAssertionsSpec : ch.tutteli.atrium.spec.integration.BooleanAssertionsSpec(
AssertionVerbFactory,
toBeName() to Companion::toBeTrue,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceAssertionsSpec.kt
index 078b211d1..07c0d081c 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceAssertionsSpec.kt
@@ -7,6 +7,7 @@ import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.reporting.translating.Translatable
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceAssertionsSpec(
AssertionVerbFactory,
getContainsDefaultTranslationOfPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtLeastAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtLeastAssertionsSpec.kt
index ffb603708..8826501e4 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtLeastAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtLeastAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.case
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsAtLeastAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsAtLeastAssertionsSpec(
AssertionVerbFactory,
getAtLeastTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtMostAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtMostAssertionsSpec.kt
index ac77043f5..dd1a60e43 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtMostAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsAtMostAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.case
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsAtMostAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsAtMostAssertionsSpec(
AssertionVerbFactory,
getAtMostTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsContainsNotAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsContainsNotAssertionsSpec.kt
index ba49143d9..fc70e3130 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsContainsNotAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsContainsNotAssertionsSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.creating.Assert
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsContainsNotAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsContainsNotAssertionsSpec(
AssertionVerbFactory,
getContainsPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsExactlyAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsExactlyAssertionsSpec.kt
index d8d3980d9..805e10e03 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsExactlyAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsExactlyAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.case
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsExactlyAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsExactlyAssertionsSpec(
AssertionVerbFactory,
getExactlyTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotAssertionsSpec.kt
index c925b24ec..6fceb4ff4 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.case
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsNotAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsNotAssertionsSpec(
AssertionVerbFactory,
getContainsNotTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotOrAtMostAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotOrAtMostAssertionsSpec.kt
index b08fd2514..ee01944e0 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotOrAtMostAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsNotOrAtMostAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.case
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsNotOrAtMostAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsNotOrAtMostAssertionsSpec(
AssertionVerbFactory,
getNotOrAtMostTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsRegexAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsRegexAssertionsSpec.kt
index 31de2d036..bb0e73b0c 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsRegexAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsRegexAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.case
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CharSequenceContainsRegexAssertionsSpec : ch.tutteli.atrium.spec.integration.CharSequenceContainsRegexAssertionsSpec(
AssertionVerbFactory,
getNameContainsRegex(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsSpecBase.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsSpecBase.kt
index dbcf98e71..8dcb75f8e 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsSpecBase.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CharSequenceContainsSpecBase.kt
@@ -9,6 +9,7 @@ import ch.tutteli.atrium.domain.creating.charsequence.contains.CharSequenceConta
import ch.tutteli.atrium.domain.creating.charsequence.contains.searchbehaviours.NoOpSearchBehaviour
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
abstract class CharSequenceContainsSpecBase {
private val containsNotFun: KFunction2, Any, Assert> = Assert::containsNot
protected val toContain = "${Assert::to.name} ${contain::class.simpleName}"
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionAssertionsSpec.kt
index 42b56250f..5dd41321e 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionAssertionsSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.Empty
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CollectionAssertionsSpec : ch.tutteli.atrium.spec.integration.CollectionAssertionsSpec(
AssertionVerbFactory,
Assert>::hasSize.name to Companion::hasSize,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionFeatureAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionFeatureAssertionsSpec.kt
index 2d3d9c887..c7c8d6ac3 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionFeatureAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/CollectionFeatureAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import kotlin.reflect.KProperty1
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class CollectionFeatureAssertionsSpec : ch.tutteli.atrium.spec.integration.CollectionFeatureAssertionsSpec(
AssertionVerbFactory,
sizeVal.name to sizeVal,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ComparableAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ComparableAssertionsSpec.kt
index e933b627d..966c786f4 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ComparableAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ComparableAssertionsSpec.kt
@@ -4,6 +4,7 @@ package ch.tutteli.atrium.api.cc.infix.en_GB
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class ComparableAssertionsSpec : ch.tutteli.atrium.spec.integration.ComparableAssertionsSpec(
AssertionVerbFactory,
Assert::isLessThan.name to Companion::isLessThan,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceSpec.kt
index ec182dde1..d2cfff8e5 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceSpec.kt
@@ -7,6 +7,7 @@ import ch.tutteli.atrium.spec.integration.TestData
internal typealias F = Assert.() -> Unit
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class FeatureAssertionsBoundedReferenceSpec : ch.tutteli.atrium.spec.integration.FeatureAssertionsSpec(
AssertionVerbFactory,
propertyImmediate,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceWhenCollectingPlantSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceWhenCollectingPlantSpec.kt
index e83cb4d34..cac355b0b 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceWhenCollectingPlantSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsBoundedReferenceWhenCollectingPlantSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.creating.CollectingAssertionPlant
import ch.tutteli.atrium.spec.integration.TestData
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class FeatureAssertionsBoundedReferenceWhenCollectingPlantSpec : ch.tutteli.atrium.spec.integration.FeatureAssertionsBoundedReferenceWhenCollectingPlantSpec(
AssertionVerbFactory,
propertyImmediate,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsClassReferenceSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsClassReferenceSpec.kt
index bf4080297..b377dbcb1 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsClassReferenceSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/FeatureAssertionsClassReferenceSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.domain.builders.utils.subAssert
import ch.tutteli.atrium.spec.integration.TestData
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class FeatureAssertionsClassReferenceSpec : ch.tutteli.atrium.spec.integration.FeatureAssertionsSpec(
AssertionVerbFactory,
propertyImmediate,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAllAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAllAssertionsSpec.kt
index 727c95cdd..6105c8d99 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAllAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAllAssertionsSpec.kt
@@ -7,6 +7,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableAllAssertionsSpec: Spek({
include(PredicateSpec)
}) {
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAnyAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAnyAssertionsSpec.kt
index 77f27ce0c..79d76e87a 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAnyAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableAnyAssertionsSpec.kt
@@ -10,6 +10,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableAnyAssertionsSpec : Spek({
include(PredicateSpec)
include(BuilderSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1EntriesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1EntriesAssertionsSpec.kt
index c32253cfa..94f7ad996 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1EntriesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1EntriesAssertionsSpec.kt
@@ -9,6 +9,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderAtLeast1EntriesAssertionsSpec : Spek({
include(BuilderSpec)
include(ShortcutSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1ValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1ValuesAssertionsSpec.kt
index 715b089f7..870d88b0e 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1ValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeast1ValuesAssertionsSpec.kt
@@ -9,6 +9,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderAtLeast1ValuesAssertionsSpec : Spek({
include(BuilderSpec)
include(ShortcutSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeastValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeastValuesAssertionsSpec.kt
index 61f99119c..ec09203d7 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeastValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtLeastValuesAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.order
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderAtLeastValuesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInAnyOrderAtLeastValuesAssertionSpec(
AssertionVerbFactory,
getAtLeastTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtMostValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtMostValuesAssertionsSpec.kt
index 9aa4eeccd..7005a5c6e 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtMostValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderAtMostValuesAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.order
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderAtMostValuesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInAnyOrderAtMostValuesAssertionSpec(
AssertionVerbFactory,
getAtMostTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderExactlyValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderExactlyValuesAssertionsSpec.kt
index 52c072596..1ec3531a6 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderExactlyValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderExactlyValuesAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.order
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderExactlyValuesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInAnyOrderExactlyValuesAssertionsSpec(
AssertionVerbFactory,
getExactlyTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderNotOrAtMostValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderNotOrAtMostValuesAssertionsSpec.kt
index 0be3539b0..92ebdf998 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderNotOrAtMostValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderNotOrAtMostValuesAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.order
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderNotOrAtMostValuesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInAnyOrderNotOrAtMostValuesAssertionsSpec(
AssertionVerbFactory,
getNotOrAtMostTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyEntriesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyEntriesAssertionsSpec.kt
index 0cc827383..0e8dc9f1f 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyEntriesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyEntriesAssertionsSpec.kt
@@ -7,6 +7,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.only
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.order
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderOnlyEntriesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInAnyOrderOnlyEntriesAssertionsSpec(
AssertionVerbFactory,
getContainsPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyValuesAssertionsSpec.kt
index 830206ccc..8513624d0 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInAnyOrderOnlyValuesAssertionsSpec.kt
@@ -7,6 +7,7 @@ import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.only
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.order
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInAnyOrderOnlyValuesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInAnyOrderOnlyValuesAssertionsSpec(
AssertionVerbFactory,
getContainsPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyEntriesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyEntriesAssertionsSpec.kt
index f0d72079f..c118e0ddd 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyEntriesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyEntriesAssertionsSpec.kt
@@ -10,6 +10,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInOrderOnlyEntriesAssertionsSpec : Spek({
include(BuilderSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedEntriesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedEntriesAssertionsSpec.kt
index fb8c8159e..49eacecf0 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedEntriesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedEntriesAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.domain.builders.utils.Group
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInOrderOnlyGroupedEntriesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInOrderOnlyGroupedEntriesAssertionsSpec(
AssertionVerbFactory,
getContainsPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedValuesAssertionsSpec.kt
index 496e162b2..b3ccba247 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyGroupedValuesAssertionsSpec.kt
@@ -6,6 +6,7 @@ import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.domain.builders.utils.Group
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInOrderOnlyGroupedValuesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsInOrderOnlyGroupedValuesAssertionsSpec(
AssertionVerbFactory,
getContainsPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyValuesAssertionsSpec.kt
index ad894571b..b98d5ecad 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsInOrderOnlyValuesAssertionsSpec.kt
@@ -10,6 +10,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsInOrderOnlyValuesAssertionsSpec : Spek({
include(BuilderSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotEntriesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotEntriesAssertionsSpec.kt
index 3cb4fd1f5..4029386f5 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotEntriesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotEntriesAssertionsSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.api.cc.infix.en_GB.keywords.contain
import ch.tutteli.atrium.creating.Assert
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsNotEntriesAssertionsSpec : ch.tutteli.atrium.spec.integration.IterableContainsNotEntriesAssertionsSpec(
AssertionVerbFactory,
getContainsNotPair(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotValuesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotValuesAssertionsSpec.kt
index 2afdfecb7..520e36f6a 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotValuesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsNotValuesAssertionsSpec.kt
@@ -8,6 +8,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableContainsNotValuesAssertionsSpec : Spek({
include(BuilderSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsSpecBase.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsSpecBase.kt
index 3e1727919..4f72e6d82 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsSpecBase.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableContainsSpecBase.kt
@@ -15,6 +15,7 @@ import ch.tutteli.atrium.domain.creating.iterable.contains.searchbehaviours.*
import ch.tutteli.atrium.verbs.internal.assert
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
abstract class IterableContainsSpecBase {
protected val Values = Values::class.simpleName
private val Entries = Entries::class.simpleName
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableNoneAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableNoneAssertionsSpec.kt
index bcecee904..4026db58e 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableNoneAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/IterableNoneAssertionsSpec.kt
@@ -8,6 +8,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class IterableNoneAssertionsSpec : Spek({
include(PredicateSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ListFeatureAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ListFeatureAssertionsSpec.kt
index fff8fe06b..f596156e5 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ListFeatureAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ListFeatureAssertionsSpec.kt
@@ -12,6 +12,7 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.include
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class ListFeatureAssertionsSpec : Spek({
include(AtriumFeatureAssertionsSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAsEntriesAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAsEntriesAssertionsSpec.kt
index 3184d4a98..8c343152c 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAsEntriesAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAsEntriesAssertionsSpec.kt
@@ -4,6 +4,7 @@ package ch.tutteli.atrium.api.cc.infix.en_GB
import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class MapAsEntriesAssertionsSpec : ch.tutteli.atrium.spec.integration.MapAsEntriesAssertionsSpec(
AssertionVerbFactory,
"asEntries",
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAssertionsSpec.kt
index 5c9a0aca2..a398b227a 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapAssertionsSpec.kt
@@ -8,6 +8,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.verbs.internal.assert
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class MapAssertionsSpec : ch.tutteli.atrium.spec.integration.MapAssertionsSpec(
AssertionVerbFactory,
containsFun.name to Companion::contains,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryAssertionsSpec.kt
index 5f9a83a6c..9f10fbb06 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryAssertionsSpec.kt
@@ -4,6 +4,7 @@ package ch.tutteli.atrium.api.cc.infix.en_GB
import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class MapEntryAssertionsSpec : ch.tutteli.atrium.spec.integration.MapEntryAssertionsSpec(
AssertionVerbFactory,
isKeyValueFun.name to Companion::isKeyValue
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryFeatureAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryFeatureAssertionsSpec.kt
index 97bca9024..2c753ee99 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryFeatureAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapEntryFeatureAssertionsSpec.kt
@@ -7,6 +7,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import kotlin.reflect.KFunction2
import kotlin.reflect.KProperty1
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class MapEntryFeatureAssertionsSpec : ch.tutteli.atrium.spec.integration.MapEntryFeatureAssertionsSpec(
AssertionVerbFactory,
keyVal.name to keyVal,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapFeatureAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapFeatureAssertionsSpec.kt
index 3b5476710..50570d239 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapFeatureAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/MapFeatureAssertionsSpec.kt
@@ -15,6 +15,7 @@ import kotlin.reflect.KProperty1
import ch.tutteli.atrium.verbs.internal.assert
import java.lang.IllegalArgumentException
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class MapFeatureAssertionsSpec : Spek({
include(AtriumMapFeatureAssertionsSpec)
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/PairFeatureAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/PairFeatureAssertionsSpec.kt
index 31ef93cbb..77c316d84 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/PairFeatureAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/PairFeatureAssertionsSpec.kt
@@ -7,6 +7,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import kotlin.reflect.KFunction2
import kotlin.reflect.KProperty1
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class PairFeatureAssertionsSpec : ch.tutteli.atrium.spec.integration.PairFeatureAssertionsSpec(
AssertionVerbFactory,
firstVal.name to firstVal,
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ThrowableAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ThrowableAssertionsSpec.kt
index c147004b0..cc726db40 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ThrowableAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/ThrowableAssertionsSpec.kt
@@ -5,6 +5,7 @@ import ch.tutteli.atrium.verbs.internal.AssertionVerbFactory
import ch.tutteli.atrium.creating.Assert
import ch.tutteli.atrium.domain.creating.throwable.thrown.ThrowableThrown
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class ThrowableAssertionsSpec : ch.tutteli.atrium.spec.integration.ThrowableAssertionsSpec(
AssertionVerbFactory,
getToThrowTriple(),
diff --git a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/TypeTransformationAssertionsSpec.kt b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/TypeTransformationAssertionsSpec.kt
index a85ac0631..0ebb8eab3 100644
--- a/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/TypeTransformationAssertionsSpec.kt
+++ b/apis/cc-infix-en_GB/atrium-api-cc-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/cc/infix/en_GB/TypeTransformationAssertionsSpec.kt
@@ -8,6 +8,7 @@ import kotlin.reflect.KFunction
import kotlin.reflect.KFunction2
+//TODO remove with 1.0.0, no need to migrate to Spek 2
class TypeTransformationAssertionsSpec : ch.tutteli.atrium.spec.integration.TypeTransformationAssertionsSpec(
AssertionVerbFactory,
getNotToBeNullPair(),
diff --git a/apis/differences.md b/apis/differences.md
index 1663e47f6..bd20f9781 100644
--- a/apis/differences.md
+++ b/apis/differences.md
@@ -14,19 +14,18 @@ These modules bundle:
Following a list of the available bundle-modules.
The links point to the KDoc of their included API where you find an overview of all available assertion functions of the API.
-- [atrium-cc-de_CH-robstoll](https://robstoll.github.io/atrium/latest#/doc/ch.tutteli.atrium.api.cc.de_-c-h/index.html)
-- [atrium-cc-en_GB-robstoll](https://robstoll.github.io/atrium/latest#/doc/ch.tutteli.atrium.api.cc.en_-g-b/index.html)
-- [atrium-cc-infix-en_GB-robstoll](https://robstoll.github.io/atrium/latest#/doc/ch.tutteli.atrium.api.cc.infix.en_-g-b/index.html)
+- [atrium-fluent-en_GB](https://robstoll.github.io/atrium/latest#/doc/ch.tutteli.atrium.api.fluent.en_-g-b/index.html)
+- [atrium-infix-en_GB](https://robstoll.github.io/atrium/latest#/doc/ch.tutteli.atrium.api.infix.en_-g-b/index.html)
----
-Following an excerpt of a build.gradle file which uses two APIs (see
+Following an excerpt of a build.gradle file which uses twit APIs (see
[README#Installation](https://github.com/robstoll/atrium/tree/master/README.md#installation)
for the rest):
```
dependencies {
- testCompile "ch.tutteli:atrium-cc-en_GB-robstoll:$atrium_version"
- testCompile "ch.tutteli:atrium-api-cc-infix-en_GB-jvm:$atrium_version"
+ testCompile "ch.tutteli:atrium-fluent-en_GB:$atrium_version"
+ testCompile "ch.tutteli:atrium-api-infix-en_GB:$atrium_version"
}
```
@@ -34,25 +33,24 @@ The first dependency points to a bundle-module, the second one just adds the inf
:warning: if you want to use the same API in different languages,
then you have to make sure that you exclude all translation modules but one (I suggest you keep the one which is your primary language).
-If you forget to do it, then the compiler will complain that you have the same enums multiple times on your classpath.
+If you forget to dit it, then the compiler will complain that you have the same enums multiple times on your classpath.
# Different API styles
-Atrium provides different APIs where the API differ in its style and the language in which it is written.
-This site focuses on the different styles of APIs and compares their en_GB versions.
-We do not show every single difference but merely where the APIs differ in naming.
-For instance, the assertion function `Assert.toBe`:
+Atrium currently provides two API styles: fluent and infix.
+We dit not show every single difference but merely where the APIs differ in naming.
+For instance, the assertion function `Expect.toBe`:
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).toBe(2)
+expect(x).toBe(2)
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) toBe 2
+expect(x) toBe 2
```
-is too similar, we will not list it here (ok, we did now but I guess you get the point).
+is toit similar, we will not list it here (ok, we did now but I guess you get the point).
## Table of Content
- [Empty CharSequence / Collection](#empty-charsequence--collection)
@@ -69,42 +67,47 @@ is too similar, we will not list it here (ok, we did now but I guess you get the
## Empty CharSequence / Collection
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).isEmpty()
-assert(x).isNotEmpty()
+expect(x).isEmpty()
+expect(x).isNotEmpty()
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) toBe Empty
-assert(x) notToBe Empty
+expect(x) toBe empty
+expect(x) notToBe empty
```
## `and` property
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).isGreaterThan(1).and.isLessThan(10)
-assert(x) { /*...*/ } and { /*...*/ }
+expect(x).isGreaterThan(1).and.isLessThan(10)
+expect(x) { /*...*/ } and { /*...*/ }
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-// does only support the group syntax
-assert(x) { /*...*/ } and { /*...*/ }
+expect(x) isGreaterThan 1 and o isLessThan 10
+expect(x) { /*...*/ } and { /*...*/ }
```
+Note that `o` is a filler object which is only there so that we can turn extension methods without parameters into
+a method with one parameter and thus make it available as infix method.
+
## CharSequence contains
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).contains("hello", "world")
-assert(x).contains.atLeast(1).butAtMost(2).value("hello")
-assert(x).contains.exactly(1).values("hello", "robert")
-assert(x).contains.atMost(2).regex("h(e|a)llo")
-assert(x).contains.ignoringCase.notOrAtMost(1).regex("h(e|a)llo", "[Rr]obert")
+expect(x).contains("hello", "world")
+expect(x).contains.atLeast(1).butAtMost(2).value("hello")
+expect(x).contains.exactly(1).values("hello", "robert")
+expect(x).contains.atMost(2).regex("h(e|a)llo")
+expect(x).contains.atMost(2).regex(Regex("h(e|a)llo"))
+expect(x).contains.ignoringCase.regex("h(e|a)llo", "[Rr]obert")
+expect(x).contains.ignoringCase.notOrAtMost(1).elementsOf(anIterable)
```
Notice that the final steps
`value`, `values` and `regex`
@@ -113,39 +116,41 @@ are applicable to all shown examples
(e.g. `exactly(1).values("hello", "robert")` could have been finished with `exactly(1).regex("h(e|a)llo")` as well).
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) contains Values("hello", "world")
-assert(x) to contain atLeast 1 butAtMost 2 value "hello"
-assert(x) to contain exactly 1 the Values("hello", "robert")
-assert(x) to contain atMost 2 regex "h(e|a)llo"
-assert(x) to contain ignoring case notOrAtMost 1 the RegexPatterns("h(e|a)llo", "[Rr]obert")
+expect(x) contains values("hello", "world")
+expect(x) contains o atLeast 1 butAtMost 2 value "hello"
+expect(x) contains o exactly 1 the values("hello", "robert")
+expect(x) contains o atMost 2 regex "h(e|a)llo"
+expect(x) contains o atMost 2 matchFor Regex("h(e|a)llo")
+expect(x) contains o ignoring case notOrAtMost 1 the regexPatterns("h(e|a)llo", "[Rr]obert")
+expect(x) contains o ignoring case notOrAtMost 1 elementsOf anIterable
```
Notice that the final steps
-`value`, `Values(...)`, `regex` and `RegexPatterns(..)`
+`value`, `values(...)`, `regex` and `regexPatterns(..)`
in the sophisticated assertion building process
are applicable to all shown examples
-(e.g. `exactly(1).values("hello", "robert")` could have been finished with `exactly(1).regex("h(e|a)llo")` as well).
+(e.g. `exactly 1 values("hello", "robert")` could have been finished with `exactly 1 regex "h(e|a)llo"` as well).
## Iterable contains
### Iterable contains in any order
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).contains(1.2)
-assert(x).contains(1.2, 5.7)
-assert(x).contains { isLessThan(2) }
-assert(x).contains({ isLessThan(2) }, { isGreaterThan 5 })
+expect(x).contains(1.2)
+expect(x).contains(1.2, 5.7)
+expect(x).contains { isLessThan(2) }
+expect(x).contains({ isLessThan(2) }, { isGreaterThan(5) })
-assert(x).contains.inAnyOrder.atLeast(1).butAtMost(2).value(3.2)
-assert(x).contains.inAnyOrder.exactly(1).values("hello", "robert")
-assert(x).contains.inAnyOrder.atMost(2).entry { isLessOrEquals(2) }
-assert(x).contains.inAnyOrder.notOrAtMost(2).entries({ notToBe(3) }, { isGreaterOrEquals(2) })
-assert(x).contains.inAnyOrder.only.value("hello")
-assert(x).contains.inAnyOrder.only.values(personA, personB)
-assert(x).contains.inAnyOrder.only.entry { isLessThan(2) }
-assert(x).contains.inAnyOrder.only.entries({ toBe(3) }, { isLessThan(2) })
+expect(x).contains.inAnyOrder.atLeast(1).butAtMost(2).value(3.2)
+expect(x).contains.inAnyOrder.exactly(1).values("hello", "robert")
+expect(x).contains.inAnyOrder.atMost(2).entry { isLessOrEquals(2) }
+expect(x).contains.inAnyOrder.notOrAtMost(2).entries({ notToBe(3) }, { isGreaterOrEquals(2) })
+expect(x).contains.inAnyOrder.only.value("hello")
+expect(x).contains.inAnyOrder.only.values(personA, personB)
+expect(x).contains.inAnyOrder.only.entry { isLessThan(2) }
+expect(x).contains.inAnyOrder.only.entries({ toBe(3) }, { isLessThan(2) })
```
Notice that the final steps
`value`, `values`, `entry` and `entries`
@@ -153,198 +158,203 @@ in the sophisticated assertion building process
are applicable to all shown examples
(e.g. `butAtMost(2).value(3.2)` could have been finished with `entries(...)` as well)
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) contains 1.2
-assert(x) contains Values(1.2, 5.7) // or Objects as alternative
-assert(x) contains { o isLessThan 2 }
-assert(x) contains Entries({ o isLessThan 2 }, { o isGreaterThan 5 })
+expect(x) contains 1.2
+expect(x) contains values(1.2, 5.7) // or Objects as alternative
+expect(x) contains { it isLessThan 2 }
+expect(x) contains entries({ it isLessThan 2 }, { it isGreaterThan 5 })
-assert(x) to contain inAny order atLeast 1 butAtMost 2 value 3.2
-assert(x) to contain inAny order exactly 1 the Values("hello", "robert")
-assert(x) to contain inAny order atMost 2 entry { o isLessOrEquals 2 }
-assert(x) to contain inAny order notOrAtMost 2 the Entries({ o notToBe 3 }, { o isGreaterOrEquals 2 })
-assert(x) to contain inAny order but only value "hello")
-assert(x) to contain inAny order but only the Values(personA, personB)
-assert(x) to contain inAny order but only entry { o isLessThan 2 }
-assert(x) to contain inAny order but only the Entries({ o toBe 3 }, { o isLessThan 2 })
+expect(x) contains o inAny order atLeast 1 butAtMost 2 value 3.2
+expect(x) contains o inAny order exactly 1 the values("hello", "robert")
+expect(x) contains o inAny order atMost 2 entry { it isLessOrEquals 2 }
+expect(x) contains o inAny order notOrAtMost 2 the entries({ it notToBe 3 }, { it isGreaterOrEquals 2 })
+expect(x) contains o inAny order but only value "hello"
+expect(x) contains o inAny order but only the values(personA, personB)
+expect(x) contains o inAny order but only entry { it isLessThan 2 }
+expect(x) contains o inAny order but only the entries({ it toBe 3 }, { it isLessThan 2 })
```
-Notice that the final steps
-`value`, `Values(...)`, `entry` and `Entries(...)`
+Note that `o` is a filler object which is only there so that we can turn extension methods without parameters into
+a method with one parameter and thus make it available as infix method.
+
+The final steps `value`, `values(...)`, `entry` and `entries(...)`
in the sophisticated assertion building process,
are applicable to all shown examples
-(e.g. `butAtMost 2 value 3.2` could have been finished with `Entries(...)` as well)
+(e.g. `butAtMost 2 value 3.2` could have been finished with `entries(...)` as well)
### Iterable contains in order
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).containsExactly(1.2)
-assert(x).containsExactly(1.2, 5.7)
-assert(x).containsExactly({ isLessThan(2) })
-assert(x).containsExactly({ isLessThan(2) }, { isGreaterThan 5 })
+expect(x).containsExactly(1.2)
+expect(x).containsExactly(1.2, 5.7)
+expect(x).containsExactly({ isLessThan(2) })
+expect(x).containsExactly({ isLessThan(2) }, { isGreaterThan 5 })
-assert(x).contains.inOrder.only.value("hello")
-assert(x).contains.inOrder.only.values("hello", "world")
-assert(x).contains.inOrder.only.entry { isLessThan(2) }
-assert(x).contains.inOrder.only.entries({ toBe(3) }, { isLessThan(2) })
-assert(x).contains.inOrder.only.grouped.within.inAnyOrder(
- Value(1),
- Values(1, 2),
- Values(3, 4)
+expect(x).contains.inOrder.only.value("hello")
+expect(x).contains.inOrder.only.values("hello", "world")
+expect(x).contains.inOrder.only.entry { isLessThan(2) }
+expect(x).contains.inOrder.only.entries({ toBe(3) }, { isLessThan(2) })
+expect(x).contains.inOrder.only.grouped.within.inAnyOrder(
+ value(1),
+ values(1, 2),
+ values(3, 4)
)
-assert(x).contains.inOrder.only.grouped.within.inAnyOrder(
- Entry({ toBe(1) }),
- Entries({ isLessThan(2) },{ isGreaterThan(2) }),
- Entries({ toBe(3) }, { toBe(4) })
+expect(x).contains.inOrder.only.grouped.within.inAnyOrder(
+ entry { toBe(1) },
+ entries({ isLessThan(2) },{ isGreaterThan(2) }),
+ entries({ toBe(3) }, { toBe(4) })
)
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) containsExactly 1.2
-assert(x) containsExactly Values(1.2, 5.7) // or Objects as alternative
-assert(x) containsExactly { o isLessThan 2 }
-assert(x) containsExactly Entries({ o isLessThan 2 }, { o isGreaterThan 5 })
+expect(x) containsExactly 1.2
+expect(x) containsExactly values(1.2, 5.7) // or Objects as alternative
+expect(x) containsExactly { it isLessThan 2 }
+expect(x) containsExactly entries({ it isLessThan 2 }, { it isGreaterThan 5 })
-assert(x) contains inGiven order and only value "hello"
-assert(x) contains inGiven order and only the Values("hello", "world")
-assert(x) contains inGiven order and only entry { o isLessThan 2 }
-assert(x) contains inGiven order and only the Entries({ o toBe 3 }, { o isLessThan 2 })
-assert(x) contains inGiven order and only grouped entries within group inAny Order(
- Value(1),
- Values(1, 2),
- Values(3, 4)
+expect(x) contains o inGiven order and only value "hello"
+expect(x) contains o inGiven order and only the values("hello", "world")
+expect(x) contains o inGiven order and only entry { it isLessThan 2 }
+expect(x) contains o inGiven order and only the entries({ it toBe 3 }, { it isLessThan 2 })
+expect(x) contains o inGiven order and only grouped entries within group inAny Order(
+ value(1),
+ values(1, 2),
+ values(3, 4)
)
-assert(x) contains inGiven order and only grouped entries within group inAny Order(
- Entry({ o toBe(1) }),
- Entries({ o isLessThan(2) },{ o isGreaterThan(2) }),
- Entries({ o toBe(3) }, { o toBe(4) })
+expect(x) contains o inGiven order and only grouped entries within group inAny Order(
+ entry { it toBe 1 },
+ entries({ it isLessThan 2 },{ it isGreaterThan 2 }),
+ entries({ it toBe 3 }, { it toBe 4 })
)
```
+Note that `o` is a filler object which is only there so that we can turn extension methods without parameters into
+a method with one parameter and thus make it available as infix method.
+
## Iterable contains not
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).containsNot(1.2)
-assert(x).containsNot(1.2, 5.7)
+expect(x).containsNot(1.2)
+expect(x).containsNot(1.2, 5.7)
-assert(x).containsNot.value(null)
-assert(x).containsNot.values(null, 1)
-assert(x).containsNot.entry { isLessThan(2) }
-assert(x).containsNot.entries(null, { isLessThan(2) }, { isGreaterThan 5 })
+expect(x).containsNot.value(null)
+expect(x).containsNot.values(null, 1)
+expect(x).containsNot.entry { isLessThan(2) }
+expect(x).containsNot.entries(null, { isLessThan(2) }, { isGreaterThan 5 })
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) containsNot 1.2
-assert(x) containsNot Values(1.2, 5.7)
+expect(x) containsNot 1.2
+expect(x) containsNot values(1.2, 5.7)
-assert(x) notTo contain value null
-assert(x) notTo contain the Values(null, 1)
-assert(x) notTo contain entry { o isLessThan 2 }
-assert(x) notTo contain the Entries(null, { o isLessThan 2 }, { o isGreaterThan 5 })
+expect(x) containsNot o value null
+expect(x) containsNot o the values(null, 1)
+expect(x) containsNot o entry { it isLessThan 2 }
+expect(x) containsNot o the entries(null, { it isLessThan 2 }, { it isGreaterThan 5 })
```
# Iterable predicate-like assertions
For more sophisticated assertions such as "there should be two matches", use the sophisticated assertion builder `contains.inAnyOrder`
-> see [Iterable contains in any order](#iterable-contains-in-any-order) for more information
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).any { startsWith("hello") }
-assert(x).none { endsWith(".") }
-assert(x).all { isNumericallyEqualTo(12.2) }
+expect(x).any { startsWith("hello") }
+expect(x).none { endsWith(".") }
+expect(x).all { isNumericallyEqualTo(12.2) }
-assert(x).any(null)
-assert(x).none(null)
-assert(x).all(null)
+expect(x).any(null)
+expect(x).none(null)
+expect(x).all(null)
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) any { o startsWith "hello" }
-assert(x) none { o endsWith "." }
-assert(x) all { o isNumericallyEqualTo 12.2 }
+expect(x) any { it startsWith "hello" }
+expect(x) none { it endsWith "." }
+expect(x) all { it isNumericallyEqualTo 12.2 }
-assert(x) any null
-assert(x) none null
-assert(x) all null
+expect(x) any null
+expect(x) none null
+expect(x) all null
```
# List get
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).get(0).isLessThan(1)
-assert(x).get(0) { isGreaterThan(1) }
+expect(x).get(0).isLessThan(1)
+expect(x).get(0) { isGreaterThan(1) }
//in case of a nullable element type
-assert(x).get(0).toBe(null)
+expect(x).get(0).toBe(null)
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) get 0 isLessThan 1
-assert(x) get Index(0) assertIt { o isGreaterThan 1 }
+expect(x) get 0 isLessThan 1
+expect(x) get index(0) { it isGreaterThan 1 }
//in case of a nullable element type
-assert(x) get 0 toBe null
+expect(x) get 0 toBe null
```
# Map getExisting
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).getExisting("a").isLessThan(1)
-assert(x).getExisting("a") { isGreaterThan(1) }
+expect(x).getExisting("a").isLessThan(1)
+expect(x).getExisting("a") { isGreaterThan(1) }
//in case of a nullable value type
-assert(x).getExisting("a").notToBeNull { isGreaterThan(1) }
+expect(x).getExisting("a").notToBeNull { isGreaterThan(1) }
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) getExisting "a" isLessThan 1
-assert(x) getExisting Key("a") assertIt { o isGreaterThan 1 }
+expect(x) getExisting "a" isLessThan 1
+expect(x) getExisting key("a") { it isGreaterThan 1 }
//in case of a nullable value type
-assert(x) getExisting Key("a") notToBeNull { o isGreaterThan 1 }
+expect(x) getExisting "a" notToBeNull { it isGreaterThan 1 }
```
# Map contains
-*atrium-api-cc-en_GB*
+*atrium-api-fluent-en_GB*
```kotlin
-assert(x).contains("a" to 1)
-assert(x).contains("a" to 1, "b" to 2)
-assert(x).contains(KeyValue("a") { isGreaterThan(3).and.isLessThan(10) })
-assert(x).contains(KeyValue("a") { toBe(2) }, KeyValue("b") { isLessThan(3) })
+expect(x).contains("a" to 1)
+expect(x).contains("a" to 1, "b" to 2)
+expect(x).contains(KeyValue("a") { isGreaterThan(3).and.isLessThan(10) })
+expect(x).contains(KeyValue("a") { toBe(2) }, KeyValue("b") { isLessThan(3) })
//in case of a nullable value type
-assert(x).contains("a" to null)
-assert(x).contains("a" to null, "b" to 2)
-assert(x).contains(KeyValue("a", null))
-assert(x).contains(
+expect(x).contains("a" to null)
+expect(x).contains("a" to null, "b" to 2)
+expect(x).contains(KeyValue("a", null))
+expect(x).contains(
KeyValue("a", null)
KeyValue("b") { isLessThan(2) }
)
```
-*atrium-api-cc-infix-en_GB*
+*atrium-api-infix-en_GB*
```kotlin
-assert(x) contains ("a" to 1)
-assert(x) contains Pairs("a" to 1, "b" to 2)
-assert(x) contains KeyValue("a") {
- o isGreaterThan 3
- o isLessThan 10
+expect(x) contains ("a" to 1)
+expect(x) contains pairs("a" to 1, "b" to 2)
+expect(x) contains keyValue("a") {
+ it isGreaterThan 3
+ it isLessThan 10
}
-assert(x) contains All(KeyValue("a") { o toBe 2 }, KeyValue("b") { o isLessThan 3 })
+expect(x) contains all(keyValue("a") { it toBe 2 }, keyValue("b") { it isLessThan 3 })
//in case of a nullable value type
-assert(x) contains ("a" to null)
-assert(x) contains Pairs("a" to null, "b" to 2)
-assert(x) contains KeyValue("a", null)
-assert(x) contains All(
- KeyValue("a", null),
- KeyValue("b") { o isLessThan 2 }
+expect(x) contains ("a" to null)
+expect(x) contains pairs("a" to null, "b" to 2)
+expect(x) contains keyValue("a", null)
+expect(x) contains all(
+ keyValue("a", null),
+ keyValue("b") { it isLessThan 2 }
)
```
diff --git a/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/anyAssertions.kt b/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/anyAssertions.kt
index 02bf6492c..5436baa1f 100644
--- a/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/anyAssertions.kt
+++ b/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/anyAssertions.kt
@@ -8,7 +8,7 @@ import ch.tutteli.atrium.reporting.Reporter
/**
* Expects that the subject of the assertion is (equal to) [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.toBe(expected: T) = addAssertion(ExpectImpl.any.toBe(this, expected))
@@ -16,7 +16,7 @@ fun Expect.toBe(expected: T) = addAssertion(ExpectImpl.any.toBe(this, exp
/**
* Expects that the subject of the assertion is not (equal to) [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.notToBe(expected: T) = addAssertion(ExpectImpl.any.notToBe(this, expected))
@@ -24,7 +24,7 @@ fun Expect.notToBe(expected: T) = addAssertion(ExpectImpl.any.notToBe(thi
/**
* Expects that the subject of the assertion is the same instance as [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.isSameAs(expected: T) = addAssertion(ExpectImpl.any.isSame(this, expected))
@@ -32,7 +32,7 @@ fun Expect.isSameAs(expected: T) = addAssertion(ExpectImpl.any.isSame(thi
/**
* Expects that the subject of the assertion is not the same instance as [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.isNotSameAs(expected: T) = addAssertion(ExpectImpl.any.isNotSame(this, expected))
@@ -47,7 +47,7 @@ fun Expect.isNotSameAs(expected: T) = addAssertion(ExpectImpl.any.isNotSa
* else notToBeNull(assertionCreatorOrNull)
* ```
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
inline fun Expect.toBeNullIfNullGivenElse(
@@ -59,7 +59,7 @@ inline fun Expect.toBeNullIfNullGivenElse(
*
* It delegates to [isA] with [T] as type.
*
- * @return An assertion container with the non-nullable type [T] (was `T?` before).
+ * @return An [Expect] with the non-nullable type [T] (was `T?` before).
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
@Suppress(/* less magic */ "RemoveExplicitTypeArguments")
@@ -71,7 +71,7 @@ inline fun Expect.notToBeNull(): Expect = isA()
*
* It delegates to [isA] with [T] as type.
*
- * @return An assertion container with the non-nullable type [T] (was `T?` before)
+ * @return An [Expect] with the non-nullable type [T] (was `T?` before)
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
@Suppress(/* less magic */ "RemoveExplicitTypeArguments")
@@ -94,7 +94,7 @@ inline fun Expect.notToBeNull(noinline assertionCreator: E
* the element type is actually `String`. Or in other words
* `assert(listOf(1, 2)).isA>{}` holds, even though `List` is clearly not a `List`.
*
- * @return An assertion container with the new type [TSub].
+ * @return An [Expect] with the new type [TSub].
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
inline fun Expect<*>.isA(): Expect =
@@ -138,7 +138,7 @@ inline fun Expect<*>.isA(): Expect =
* the element type is actually `String`. Or in other words
* `assert(listOf(1, 2)).isA>{}` holds, even though `List` is clearly not a `List`.
*
- * @return An assertion container with the new type [TSub].
+ * @return An [Expect] with the new type [TSub].
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
inline fun Expect<*>.isA(noinline assertionCreator: Expect.() -> Unit): Expect =
@@ -152,7 +152,7 @@ inline fun Expect<*>.isA(noinline assertionCreator: Expect<
* asserts that 1 is greater than 0. If the first assertion fails, then usually (depending on the configured
* [AssertionChecker]) the second assertion is not evaluated.
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
*/
inline val Expect.and: Expect get() = this
@@ -164,6 +164,6 @@ inline val Expect.and: Expect get() = this
* second one is evaluated as a whole. Meaning, even though 1 is not even, it still evaluates that 1 is greater than 1.
* Hence the reporting might (depending on the configured [Reporter]) contain both failing sub-assertions.
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
*/
infix fun Expect.and(assertionCreator: Expect.() -> Unit) = addAssertionsCreatedBy(assertionCreator)
diff --git a/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/arrayAssertions.kt b/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/arrayAssertions.kt
index 4c9dd8a89..c0d54fc3c 100644
--- a/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/arrayAssertions.kt
+++ b/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/arrayAssertions.kt
@@ -11,6 +11,8 @@ import kotlin.jvm.JvmName
* Use `feature(Array::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
fun Expect>.asList(): Expect> =
ExpectImpl.changeSubject(this).unreported { it.asList() }
@@ -23,6 +25,8 @@ fun Expect>.asList(): Expect> =
* Use `feature(Array::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
fun Expect>.asList(assertionCreator: Expect>.() -> Unit): Expect> =
apply { asList().addAssertionsCreatedBy(assertionCreator) }
@@ -35,6 +39,8 @@ fun Expect>.asList(assertionCreator: Expect>.() -> Unit): E
* Use `feature(Array::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("asListEOut")
fun Expect>.asList(assertionCreator: Expect>.() -> Unit): Expect> =
@@ -47,6 +53,8 @@ fun Expect>.asList(assertionCreator: Expect>.() -> Unit
* Use `feature(ByteArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("byteArrAsList")
fun Expect.asList(): Expect> =
@@ -60,6 +68,8 @@ fun Expect.asList(): Expect> =
* Use `feature(ByteArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("byteArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -73,6 +83,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit): E
* Use `feature(CharArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("charArrAsList")
fun Expect.asList(): Expect> =
@@ -86,6 +98,8 @@ fun Expect.asList(): Expect> =
* Use `feature(CharArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("charArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -99,6 +113,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit): E
* Use `feature(ShortArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("shortArrAsList")
fun Expect.asList(): Expect> =
@@ -112,6 +128,8 @@ fun Expect.asList(): Expect> =
* Use `feature(ShortArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("shortArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -125,6 +143,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit):
* Use `feature(IntArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("intArrAsList")
fun Expect.asList(): Expect> = ExpectImpl.changeSubject(this).unreported { it.asList() }
@@ -137,6 +157,8 @@ fun Expect.asList(): Expect> = ExpectImpl.changeSubject(this
* Use `feature(IntArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("intArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -150,6 +172,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit): Exp
* Use `feature(LongArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("longArrAsList")
fun Expect.asList(): Expect> =
@@ -163,6 +187,8 @@ fun Expect.asList(): Expect> =
* Use `feature(LongArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("longArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -176,6 +202,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit): E
* Use `feature(FloatArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("floatArrAsList")
fun Expect.asList(): Expect> =
@@ -189,6 +217,8 @@ fun Expect.asList(): Expect> =
* Use `feature(FloatArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("floatArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -202,6 +232,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit):
* Use `feature(DoubleArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("doubleArrAsList")
fun Expect.asList(): Expect> =
@@ -215,6 +247,8 @@ fun Expect.asList(): Expect> =
* Use `feature(DoubleArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("doubleArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
@@ -228,6 +262,8 @@ fun Expect.asList(assertionCreator: Expect>.() -> Unit
* Use `feature(BooleanArray::asList)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("boolArrAsList")
fun Expect.asList(): Expect> =
@@ -241,6 +277,8 @@ fun Expect.asList(): Expect> =
* Use `feature(BooleanArray::asList, assertionCreator)` if you want to show the transformation in reporting.
*
* @return The newly created [Expect] for the transformed subject.
+ *
+ * @since 0.9.0
*/
@JvmName("boolArrAsList")
fun Expect.asList(assertionCreator: Expect>.() -> Unit): Expect =
diff --git a/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/charSequenceAssertions.kt b/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/charSequenceAssertions.kt
index 85ce8f0a3..7f623cddb 100644
--- a/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/charSequenceAssertions.kt
+++ b/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/charSequenceAssertions.kt
@@ -35,19 +35,19 @@ val Expect.containsNot: NotCheckerOption Expect.contains(expected: Any, vararg otherExpected: A
* Notice that a runtime check applies which assures that only [CharSequence], [Number] and [Char] are passed (this
* function expects `Any` for your convenience, so that you can mix [String] and [Int] for instance).
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.containsNot(expected: Any, vararg otherExpected: Any) =
@@ -76,9 +76,9 @@ fun Expect.containsNot(expected: Any, vararg otherExpected
*
* It is a shortcut for `contains.atLeast(1).regex(pattern, *otherPatterns)`.
*
- * By non disjoint is meant that `'aa'` in `'aaaa'` is found three times and not only two times.
- * Also notice, that it does not search for unique matches. Meaning, if the input of the search is `'ab'` and [pattern]
- * is defined as `'a(b)?'` and one of the [otherPatterns] is defined as `'a(b)?'` as well, then both match, even though
+ * By non disjoint is meant that `"aa"` in `"aaaa"` is found three times and not only two times.
+ * Also notice, that it does not search for unique matches. Meaning, if the input of the search is `"ab"` and [pattern]
+ * is defined as `"a(b)?"` and one of the [otherPatterns] is defined as `"a(b)?"` as well, then both match, even though
* they match the same sequence in the input of the search. Use an option such as [atLeast], [atMost] and [exactly] to
* control the number of occurrences you expect.
*
@@ -90,7 +90,7 @@ fun Expect.containsNot(expected: Any, vararg otherExpected
* @param pattern The pattern which is expected to have a match against the input of the search.
* @param otherPatterns Additional patterns which are expected to have a match against the input of the search.
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.containsRegex(pattern: String, vararg otherPatterns: String): Expect =
@@ -102,9 +102,9 @@ fun Expect.containsRegex(pattern: String, vararg otherPatt
*
* It is a shortcut for `contains.atLeast(1).regex(pattern, *otherPatterns)`.
*
- * By non disjoint is meant that `'aa'` in `'aaaa'` is found three times and not only two times.
- * Also notice, that it does not search for unique matches. Meaning, if the input of the search is `'ab'` and [pattern]
- * is defined as `'a(b)?'` and one of the [otherPatterns] is defined as `'a(b)?'` as well, then both match, even though
+ * By non disjoint is meant that `"aa"` in `"aaaa"` is found three times and not only two times.
+ * Also notice, that it does not search for unique matches. Meaning, if the input of the search is `"ab"` and [pattern]
+ * is defined as `"a(b)?"` and one of the [otherPatterns] is defined as `"a(b)?"` as well, then both match, even though
* they match the same sequence in the input of the search. Use an option such as [atLeast], [atMost] and [exactly] to
* control the number of occurrences you expect.
*
@@ -116,7 +116,7 @@ fun Expect.containsRegex(pattern: String, vararg otherPatt
* @param pattern The pattern which is expected to have a match against the input of the search.
* @param otherPatterns Additional patterns which are expected to have a match against the input of the search.
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*
* @since 0.9.0
@@ -127,7 +127,7 @@ fun Expect.containsRegex(pattern: Regex, vararg otherPatte
/**
* Expects that the subject of the assertion (a [CharSequence]) starts with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.startsWith(expected: CharSequence) =
@@ -136,7 +136,7 @@ fun Expect.startsWith(expected: CharSequence) =
/**
* Expects that the subject of the assertion (a [CharSequence]) starts with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*
* @since 0.9.0
@@ -146,7 +146,7 @@ fun Expect.startsWith(expected: Char) = startsWith(expecte
/**
* Expects that the subject of the assertion (a [CharSequence]) does not start with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.startsNotWith(expected: CharSequence) =
@@ -155,7 +155,7 @@ fun Expect.startsNotWith(expected: CharSequence) =
/**
* Expects that the subject of the assertion (a [CharSequence]) does not start with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*
* @since 0.9.0
@@ -166,7 +166,7 @@ fun Expect.startsNotWith(expected: Char) = startsNotWith(e
/**
* Expects that the subject of the assertion (a [CharSequence]) ends with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.endsWith(expected: CharSequence) =
@@ -175,7 +175,7 @@ fun Expect.endsWith(expected: CharSequence) =
/**
* Expects that the subject of the assertion (a [CharSequence]) ends with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*
* @since 0.9.0
@@ -185,7 +185,7 @@ fun Expect.endsWith(expected: Char) = endsWith(expected.to
/**
* Expects that the subject of the assertion (a [CharSequence]) does not end with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.endsNotWith(expected: CharSequence) =
@@ -194,7 +194,7 @@ fun Expect.endsNotWith(expected: CharSequence) =
/**
* Expects that the subject of the assertion (a [CharSequence]) does not end with [expected].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*
* @since 0.9.0
@@ -205,7 +205,7 @@ fun Expect.endsNotWith(expected: Char) = endsNotWith(expec
/**
* Expects that the subject of the assertion (a [CharSequence]) [CharSequence].[kotlin.text.isEmpty].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.isEmpty() = addAssertion(ExpectImpl.charSequence.isEmpty(this))
@@ -213,7 +213,7 @@ fun Expect.isEmpty() = addAssertion(ExpectImpl.charSequenc
/**
* Expects that the subject of the assertion (a [CharSequence]) [CharSequence].[kotlin.text.isNotEmpty].
*
- * @return This assertion container to support a fluent API.
+ * @return An [Expect] for the current subject of the assertion.
* @throws AssertionError Might throw an [AssertionError] if the assertion made is not correct.
*/
fun Expect.isNotEmpty() = addAssertion(ExpectImpl.charSequence.isNotEmpty(this))
@@ -221,7 +221,7 @@ fun Expect