Commit Graph

2224 Commits

Author SHA1 Message Date
Robert Stoll
284d0c3254 v0.10.0 v0.10.0 2020-03-12 22:14:41 +01:00
Robert Stoll
7dddc9d586 format KDoc of Throwable.cause 2020-03-12 22:14:40 +01:00
Robert Stoll
ff52df7ab5 change @since 0.10.0 for new infix api to 0.11.0 2020-03-12 22:14:37 +01:00
Robert Stoll
e5610b68e8 Merge pull request #392 from robstoll/infix-feature-manual
provide alternative for manual features in case of new inference
2020-03-12 22:10:04 +01:00
Robert Stoll
73c642257f provide alternative for manual features in case of new inference 2020-03-12 21:37:59 +01:00
Robert Stoll
435062cc4a Merge pull request #391 from robstoll/feature-infix-specs
add missing specs for feature functions for the new infix API
2020-03-11 06:32:43 +01:00
Robert Stoll
2404156e73 add missing specs for feature functions for the new infix API
...and fix some issues:
- add the missing function for FeatureWithCreator for 5 params
- use method call formatter for KFunctionX
2020-03-10 22:02:55 +01:00
Robert Stoll
037d336d79 mention that cc-infix specs don't need to be migrated to spek2 2020-03-10 21:02:47 +01:00
Robert Stoll
7ddb2e973c add component diagram by tfesenko 2020-03-10 16:56:14 +01:00
Robert Stoll
5ed2648aba deprecate DescriptionThrowableAssertion.NO_EXCEPTION_OCCURRED 2020-03-06 08:33:59 +01:00
Robert Stoll
a9ccdfcc52 update npm dependencies 2020-03-06 08:20:27 +01:00
Robert Stoll
133148daa7 cleanup ThrowableAssertionsSpec in infix API (use WithAsciiReporter) 2020-03-06 08:20:11 +01:00
Robert Stoll
4c72123ed4 Merge branch 'shortcut-for-cause' 2020-03-06 08:08:29 +01:00
Robert Stoll
1510bd2629 cleanup and change representation in case no cause occurred 2020-03-06 07:51:47 +01:00
Tatiana Fesenko
e8649a5723 address comments to PR #377 2020-03-06 07:35:02 +01:00
Tatiana Fesenko
86f9c59675 add shortcut for clause also to the new infix API 2020-03-06 07:35:02 +01:00
Tatiana Fesenko
cedef07f46 add shortcut fun cause for Throwable::getCause (#31) 2020-03-06 07:34:33 +01:00
Robert Stoll
1c86df9dd4 Merge pull request #384 from robstoll/charSequence-and-throwable-for-new-infix-api
add throwable and charSequenceAssertions to the new infix API
2020-03-03 22:08:28 +01:00
Robert Stoll
20a38b5801 add throwable and charSequenceAssertions to the new infix API
moreover:
- add ambiguityTest to CharSequenceSpecBase
- introduce toVarArg which incorporates the hasNext check
- make feature KProperty contra-variant -> otherwise something like
  Throwable::message does not work
  - unfortunately same for Feature and FeatureWithCreator
    but due to a Kotlin bug (would not be necessary
  - also the same for the param object Values (also a Kotlin bug)
2020-03-03 21:50:47 +01:00
Robert Stoll
1cba477a1e Merge pull request #383 from robstoll/withOptions-new-infix-api
add withOptions as experimental to new infix API
2020-03-03 12:16:09 +01:00
Robert Stoll
46a3b714ef add withOptions as experimental to new infix API 2020-03-03 11:29:56 +01:00
Robert Stoll
155bae5c5c Merge pull request #382 from robstoll/more-cleanup
cleanup, remove `returns this`, order fun
2020-03-01 22:14:21 +01:00
Robert Stoll
f3fee7cb4c cleanup, remove returns this, order fun
In detail:
- follow up to a352716d, we still use  `returns this` in the description
  change to `an [Expect] for the current subject of the assertion`
- fix KDoc of min and max, they are not properties but method calls
- get rid of private funs `values` and `keys` -> not worth the
  code duplication reduction
2020-03-01 21:27:02 +01:00
Robert Stoll
ff5424811a Merge pull request #381 from robstoll/feature-new-infix-api
add feature to the new infix API
2020-03-01 21:18:23 +01:00
Robert Stoll
7514f44844 transform List.get and Map.getExisting use fun instead of param obj
moreover:
- move param objects to own package so that they are not automatically
  available when one adds an `import ch.tutteli.atrium.api.infix.*`
  statement
- simplify MapAssertionsSpec by introducing mfun2 which covers most
  types (also in fluent-en_GB)
2020-03-01 20:52:34 +01:00
Robert Stoll
382ce93bdb add feature assertions to the new infix API 2020-02-29 21:55:37 +01:00
Robert Stoll
a352716d1f Merge pull request #380 from robstoll/rename-asssertion-container-to-expect
rename `assertion container` to `Expect`
2020-02-29 21:48:36 +01:00
Robert Stoll
48ebaaf43a rename assertion container to Expect
moreover:
- get rid off `to support a fluent API`, that's actually wrong, even
  if we return an Expect for a feature it is still a fluent API
- do not mention that this Expect is returned but one for the current
  subject
2020-02-29 20:59:10 +01:00
Robert Stoll
143665a83f Merge pull request #379 from alexjdz/undo-MapAssertionsSpec-rename
undo renaming of MapAssertionsSpec class
2020-02-29 16:36:36 +01:00
Alex Diaz
1a8e76e1ac undo renaming of MapAssertionsSpec class
While working on #229, mapAssertionsSpec was accidentally renamed to mapExceptionsSpec. As all tests passed, this error was unfortunately never noticed. This change reverts it back to mapAssertionsSpec.
2020-02-29 14:59:00 +01:00
Robert Stoll
1c5bbb207e Merge pull request #378 from dd2480-12/#229-new-infix-mapAssertions
feat(infix-api): mapAssertions
2020-02-28 20:59:32 +01:00
Alex
f4e9d5b7d7 format files, rename plant to expect 2020-02-28 10:15:20 +01:00
Joar Ekelund
e135750aed implement mapAssertions with new infix API
Co-authored-by: alexjdz <alexdiaz.jdz@gmail.com>
Co-authored-by: jlundhol <jesper.a.lundholm@gmail.com>
Co-authored-by: ashgreyship <blackbird698@gmail.com>>
2020-02-27 18:13:44 +01:00
Robert Stoll
ded28903c7 exclude new infix API from being published until we are ready 2020-02-18 20:05:36 +01:00
Robert Stoll
9b97a681b0 remove Kotlin bugs from README, link to wiki instead 2020-02-18 19:00:09 +01:00
Robert Stoll
8ff3a7495e cleanup Path.resolve 2020-02-18 18:38:41 +01:00
Robert Stoll
9cb8c5de47 Merge pull request #372 from slalu/216-path-resolve
Add path resolve shortcut
2020-02-18 18:33:57 +01:00
Robert Stoll
3e079a48ed Add path resolve shortcut 2020-02-17 21:22:55 -05:00
Robert Stoll
e253cbf462 re-activate the new infix API
and fix bug in infix/.../chronoLocalDateAssertions.kt
2020-02-13 22:46:10 +01:00
Robert Stoll
08b2652d02 Merge pull request #373 from tfesenko/issue/315-chronoZonedDateTimeAssertions_infix_api
#315: add chronoZonedDateTimeAssertions for thew new infix API
2020-02-13 17:07:22 +01:00
Tatiana Fesenko
a5efbc17c0 add chronoZonedDateTimeAssertions for thew new infix API (#315)
Followed intructions from the issue:
* copy and adjust the file chronoZonedDateTimeAssertions.kt from atrium-api-fluent-en_GB-jdk8-jvm to atrium-api-infix-en_GB-jdk8-jvm
*  module-info.java already had uncommented `exports ch.tutteli.atrium.api.infix.en_GB.jdk8`
* change `@sinse` from 0.9.0 to 0.10.0
* copy the ChronoZonedDateTimeAssertionSpec.kt from atrium-api-fluent-en_GB-jdk8-jvm to atrium-api-infix-en_GB-jdk8-jvm (the description incorrectly said "ChronoZonedDateTimeAssertion_s_Spec.kt" with an "s")
2020-02-13 10:47:13 -05:00
Robert Stoll
b20a3f5d37 Merge pull request #369 from name213/#313-chronoLocalDateAssertions_for_the_new_infix_API
#313 migrate chronoLocalDateAssertions for infix api
2020-02-10 23:41:58 +01:00
name213
1fb77974c6 #313 change since 0.9.0 to 0.10.0 2020-02-10 23:21:50 +01:00
name213
f0c52ebad0 #313 migrate chronoLocalDateAssertions for infix api 2020-02-10 23:19:47 +01:00
Robert Stoll
9fd1f7489c fix take a sneak peak banner 2020-02-10 23:17:06 +01:00
Robert Stoll
ffa17b8ffb Merge pull request #368 from tfesenko/issue/319-zonedDateTimeAssertions_infix_api
#319: zonedDateTimeAssertions for thew new infix API
2020-02-10 22:30:50 +01:00
Tatiana Fesenko
8c096e76e2 add zonedDateTimeAssertions for thew new infix API (#319)
Followed intructions from the issue:
* copy and adjust the file zonedDateTimeAssertions.kt from atrium-api-fluent-en_GB-jdk8-jvm to atrium-api-infix-en_GB-jdk8-jvm
* uncomment `exports ch.tutteli.atrium.api.infix.en_GB.jdk8` in module-info.java
* (not mentioned in the issue): changed the `@sinse` from 0.9.0 to 0.10.0 as this change will only be available in 0.10.0
2020-02-10 14:02:47 -05:00
Robert Stoll
25c0e5b776 use 0.9.2 in bc-test 2020-02-10 06:36:03 +01:00
Robert Stoll
52fb8ebace Merge pull request #367 from robstoll/validate-gradle-wrapper
add github workflow to check gradle jar
2020-02-09 15:52:35 +01:00
Robert Stoll
ed7f51e4aa add github workflow to check gradle jar 2020-02-09 15:26:16 +01:00