Skip to content

Commit

Permalink
Merge branch 'master' into robstoll#245-samples-build
Browse files Browse the repository at this point in the history
  • Loading branch information
assaflei committed Apr 24, 2020
2 parents b030d3b + 1f4c691 commit 8c48066
Show file tree
Hide file tree
Showing 431 changed files with 3,301 additions and 1,189 deletions.
11 changes: 9 additions & 2 deletions .github/ISSUE_TEMPLATE/good_first_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,19 @@ Following the things you need to do:
- [ ] modify XyAssertionsBuilder, delegate to xyAssertions (see YzAssertionsBuilder as a guideline)
- [ ] delegate implementation to robstoll-lib in XyAssertionsImpl (see YzAssertionsImpl as a guideline)

*api*
*api-fluent*
- [ ] provide a val which returns `Expect<T>` (see yzAssertions.kt as a guideline)
- [ ] provide a fun which expects an `assertionCreator`-lambda and returns `Expect<AB>` (see yzAssertions.kt as a guideline)
- [ ] add `@since 0.9.0` (adopt to next release version) to KDOC of val and fun
- [ ] add `@since 0.12.0` (adapt to next release version) to KDOC
- [ ] extend or write a separate Spec named XyFeatureAssertionsSpec in specs-common (see for instance YzFeatureAssertionsSpec) and extend it in atrium-api-fluent-en_GB-common/src/test

*api-infix*
- [ ] provide a val which returns `Expect<T>` (see yzAssertions.kt as a guideline)
- [ ] provide a fun which expects an `assertionCreator`-lambda and returns `Expect<AB>` (see yzAssertions.kt as a guideline)
- [ ] add `@since 0.12.0` (adapt to next release version) to KDOC
- [ ] extend or write a separate Spec named XyFeatureAssertionsSpec in specs-common (see for instance YzFeatureAssertionsSpec) and extend it in atrium-api-infix-en_GB-common/src/test


## Non-Code related feature
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/java-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: true
matrix:
java_version: [9, 10, 12]
java_version: [9, 10, 12, 13, 14]

steps:
- uses: actions/checkout@v1
Expand All @@ -20,6 +20,12 @@ jobs:
run: ./gradlew buildNonDeprecatedJvm
env:
CI: true
- name: Upload windows build code coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: current_windows
fail_ci_if_error: true

- name: build sample atrium+spek project
run: samples\jvm\spek\gradlew -p samples\jvm\spek build
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!-- for a specific release -->
<!--
[![Download](https://img.shields.io/badge/Download-0.10.0-%23007ec6)](https://bintray.com/robstoll/tutteli-jars/atrium/0.10.0 "Download 0.10.0 from Bintray")
[![Download](https://img.shields.io/badge/Download-0.11.0-%23007ec6)](https://bintray.com/robstoll/tutteli-jars/atrium/0.11.0 "Download 0.11.0 from Bintray")
[![EUPL](https://img.shields.io/badge/%E2%9A%96-EUPL%201.2-%230b45a6)](https://joinup.ec.europa.eu/collection/eupl/eupl-text-11-12 "License")
[![atrium @ kotlinlang.slack.com](https://img.shields.io/static/v1?label=kotlinlang&message=atrium&color=blue&logo=slack)](https://kotlinlang.slack.com/messages/C887ZKGCQ "See invitation link under section FAQ")
[![Newcomers Welcome](https://img.shields.io/badge/%F0%9F%91%8B-Newcomers%20Welcome-blueviolet)](https://github.com/robstoll/atrium/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22 "Ask in slack for help")
Expand All @@ -33,9 +33,9 @@ See [Examples](#examples) below to get a feel for how you could benefit from Atr
---
❗ 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.10.0](https://github.com/robstoll/atrium/tree/v0.10.0/README.md).
For instance, the [README of v0.11.0](https://github.com/robstoll/atrium/tree/v0.11.0/README.md).

----
---

**Table of Content**
- [Installation](#installation)
Expand Down Expand Up @@ -88,7 +88,7 @@ but can also be retrieved directly from [bintray](https://bintray.com/robstoll/t
*gradle*:
```
buildscript {
ext { atrium_version='0.10.0' }
ext { atrium_version='0.11.0' }
}
repositories {
mavenCentral()
Expand Down Expand Up @@ -120,7 +120,7 @@ dependencies {
<summary>click to see how the setup for the infix API looks like</summary>


The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.10.0.
The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.11.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.

Expand Down Expand Up @@ -157,7 +157,7 @@ That is all, you are all set. Jump to [Examples](#examples) which shows how to u

```
buildscript {
ext { atrium_version='0.10.0' }
ext { atrium_version='0.11.0' }
}
repositories {
mavenCentral()
Expand Down Expand Up @@ -211,7 +211,7 @@ dependencies {
<summary>click to see how the setup for the infix API looks like</summary>


The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.10.0.
The new infix API which is based on `Expect` and no longer on `Assert` is not yet available in v0.11.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.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")

package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.checking.AssertionChecker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.creating.Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.creating.Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.api.cc.en_UK.creating.charsequence.contains.builders.NotCheckerOption
Expand Down Expand Up @@ -149,7 +150,7 @@ fun <T : CharSequence> Assert<T>.containsNotDefaultTranslationOf(expected: Trans
* @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 The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.containsRegex(expected, *otherExpected)"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.api.cc.en_UK.creating.charsequence.contains.builders.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.assertions.Assertion
Expand All @@ -24,7 +25,7 @@ import ch.tutteli.atrium.reporting.translating.Translatable
*
* @param expected The object which is expected to be contained within the input of the search.
*
* @return The [AssertionPlant] for which the assertion was built 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.
* @throws IllegalArgumentException in case [expected] is not a [CharSequence], [Number] or [Char].
*/
Expand Down Expand Up @@ -53,7 +54,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, NoOpSearchBehaviour
* @param expected The object which is expected to be contained within the input of the search.
* @param otherExpected Additional objects which are expected to be contained within the input of the search.
*
* @return The [AssertionPlant] for which the assertion was built 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.
* @throws IllegalArgumentException in case [expected] or one of the [otherExpected] is not a
* [CharSequence], [Number] or [Char].
Expand All @@ -76,7 +77,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, NoOpSearchBehaviour
*
* @param expected The object which is expected to be contained within the input of the search.
*
* @return The [AssertionPlant] for which the assertion was built 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.
* @throws IllegalArgumentException in case [expected] is not a [CharSequence], [Number] or [Char].
*/
Expand Down Expand Up @@ -106,7 +107,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, IgnoringCaseSearchB
* @param expected The object which is expected to be contained within the input of the search.
* @param otherExpected Additional objects which are expected to be contained within the input of the search.
*
* @return The [AssertionPlant] for which the assertion was built 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.
* @throws IllegalArgumentException in case [expected] or one of the [otherExpected] is not a
* [CharSequence], [Number] or [Char].
Expand Down Expand Up @@ -134,7 +135,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, IgnoringCaseSearchB
* instead of:
* `contains.atLeast(1).defaultTranslationOf(IS, IS)`
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.defaultTranslationOf(expected, *otherExpected)"))
Expand All @@ -158,7 +159,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, NoOpSearchBehaviour
* instead of:
* `contains.atLeast(1).defaultTranslationOf(IS, IS)`
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.defaultTranslationOf(expected, *otherExpected)"))
Expand All @@ -185,7 +186,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, IgnoringCaseSearchB
* @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 The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.regex(pattern, *otherPatterns)"))
Expand All @@ -210,7 +211,7 @@ fun <T : CharSequence> CharSequenceContains.CheckerOption<T, NoOpSearchBehaviour
* @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 The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.regex(pattern, *otherPatterns)"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.api.cc.en_UK.creating.charsequence.contains.builders.NotCheckerOption
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")

package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.creating.Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")

package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.creating.Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")

package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.assertions.Assertion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")

package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.creating.Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.api.cc.en_UK.creating.iterable.contains.builders.NotCheckerOption
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.api.cc.en_UK.creating.iterable.contains.builders.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.assertions.iterable.contains.builders.IterableContainsBuilder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@file:Suppress("DEPRECATION" /* TODO remove with 1.0.0 */)
// TODO remove file with 1.0.0
@file:Suppress("DEPRECATION", "TYPEALIAS_EXPANSION_DEPRECATION")
package ch.tutteli.atrium.api.cc.en_UK

import ch.tutteli.atrium.assertions.Assertion
Expand All @@ -20,7 +21,7 @@ import ch.tutteli.atrium.domain.creating.iterable.contains.searchbehaviours.InAn
*
* @param expected The value which is expected to be contained within the [Iterable].
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.value(expected)"))
Expand Down Expand Up @@ -52,7 +53,7 @@ fun <E, T : Iterable<E>> value(checkerBuilder: IterableContainsCheckerBuilder<E,
* @param expected The object which is expected to be contained within the [Iterable].
* @param otherExpected Additional objects which are expected to be contained within [Iterable].
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.values(expected, *otherExpected)"))
Expand Down Expand Up @@ -96,7 +97,7 @@ fun <E, T : Iterable<E>> objects(checkerBuilder: IterableContainsCheckerBuilder<
* has to hold; or in other words, the function which defines whether an entry is the one we are looking for
* or not.
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.entry(assertionCreator)"))
Expand All @@ -119,7 +120,7 @@ fun <E : Any, T : Iterable<E>> entry(checkerBuilder: IterableContainsCheckerBuil
* @param otherAssertionCreators Additional identification lambdas which each kind of identify (separately) an entry
* which we are looking for.
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.entries(assertionCreator, *otherAssertionCreators)"))
Expand All @@ -146,7 +147,7 @@ fun <E : Any, T : Iterable<E>> entries(
*
* @param expected The value which is expected to be contained within the [Iterable].
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.nullableValue(expected)"))
Expand All @@ -169,7 +170,7 @@ fun <E : Any?, T : Iterable<E>> IterableContains.CheckerOption<E, T, InAnyOrderS
* @param expected The object which is expected to be contained within the [Iterable].
* @param otherExpected Additional objects which are expected to be contained within [Iterable].
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.nullableValues(expected, *otherExpected)"))
Expand All @@ -187,7 +188,7 @@ fun <E : Any?, T : Iterable<E>> IterableContains.CheckerOption<E, T, InAnyOrderS
* has to hold; or in other words, the function which defines whether an entry is the one we are looking for
* or not.
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.entry(assertionCreator)"))
Expand All @@ -211,7 +212,7 @@ fun <E : Any, T : Iterable<E?>> nullableEntry(checkerBuilder: IterableContainsCh
* @param otherAssertionCreators Additional identification lambdas which each kind of identify (separately) an entry
* which we are looking for.
*
* @return The [AssertionPlant] for which the assertion was built 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.
*/
@Deprecated("Use pendant from package en_GB; will be removed with 1.0.0", ReplaceWith("ch.tutteli.atrium.api.cc.en_GB.entries(assertionCreator, *otherAssertionCreators)"))
Expand Down
Loading

0 comments on commit 8c48066

Please sign in to comment.