Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 3, 2023

Bumps org.awaitility:awaitility-groovy from 3.1.6 to 4.2.0.

Changelog

Sourced from org.awaitility:awaitility-groovy's changelog.

Changelog 4.2.0 (2022-03-04)

  • Fixed a bug in the shutdown behavior of a polling thread. The wrong time unit was used causing executor shutdown to take way more time than expected in cases where it's stuck. Thanks to Claus Näveke for spotting this and for the initial PR.

  • Fixed a bug in which condition was not evaluated correctly with small intervals, such as: await().atMost(Duration.ofMillis(10)).pollInterval(Duration.ofMillis(5)).until(..); (issue 224). Thanks to Robby Decosemaeker for PR.

  • Upgraded the awaitility-kotlin module to use kotlin 1.6.10

  • Fail fast conditions can now be specified with assertions. For example:

    await().failFast(() -> assertThat(state).isNotEqualTo("Failed")).until(..);

    (issue 238)

Changelog 4.1.1 (2021-10-25)

  • Fixed a bug preventing you to specify "fib(-1)" when using the fibonacci poll interval (thanks to Björn Michael for pull request) (issue 201)
  • Avoid memory leak by caching only the original default uncaught exception handler globally (thanks to Oliver Grof for pull request (issue 221)
  • Added "conditionEvaluationListener" to Kotlin DSL

Changelog 4.1.0 (2021-05-08)

  • Upgraded to Scala from 2.13.3 to 2.13.5 (thanks to sullis for pull request)

  • Upgraded Kotlin from 1.3.72 to 1.5.0

  • Added support for fail-fast conditions. This is a special condition that, if fulfilled, will throw a "org.awaitility.core.TerminalFailureException" immediately, thus failing the test. This is good when you have a condition that you know beforehand should never be fulfilled. So instead of waiting the full duration of a normal condition evaluation period, the test will fail faster if this (fail fast) condition evaluates to true. For example:

    await().timeout(Duration.ofSeconds(5)).failFast(() -> orders.findById(1234).state == PAID).until(() -> orders.findById(1234).state == CLOSED);

    This will fail-fast if the state of order 1234 is ever equal to "PAID" during the 5 second evaluation of the condition specified in "until". (Thanks to Antony Stubbs for initial pull request) (issue 178)

  • Upgraded Groovy from version 3.0.4 to 3.0.8

Changelog 4.0.3 (2020-05-19)

  • Upgraded to Scala 2.13.2 from 2.13.0 (thanks to sullis for pull request)

  • Upgraded Kotlin extension to use Kotlin 1.3.72 (instead of 1.3.61)

  • Improved org.awaitility.core.ConditionEvaluationLogger to accept a consumer that decides how the logs are printed. You can use this to for example log intermediary values using slf4j instead of System.out.println or log to to disk or a data structure such as CopyOnWriteArrayList. For example:

    await().conditionEvaluationListener(new ConditionEvaluationLogger(log::info)).until();

    This will log using a the logger "log" instead of printing to the console.

  • Fixed problems with test dependencies in pom.xml

  • Upgraded Groovy from 2.5.7 to 3.0.4

Changelog 4.0.2 (2020-01-03)

  • Improved formatting of elapsed time (or error and logging) for long time durations
  • Implemented support for "during" (issue 124) (big thanks to Pablo Díaz-López for pull request)
  • org.awaitility.core.ConditionEvaluationListener now has two additional hooks, "beforeEvaluation" and "onTimeout", which you can implement to get notified on these events. They are implemented as default methods to retain backward compatibility. (issue 149) (big thanks to Oliver Grof for pull request)

... (truncated)

Commits
  • b5d82b7 [maven-release-plugin] prepare release awaitility-4.2.0
  • 1ae0349 Preparing changelog for release
  • 386eccb Improve error message in test
  • fc45eb7 Fail fast conditions can now be specified with assertions
  • d39c00d Upgrading Kotlin to 1.6.10
  • f359e94 Formatted ConditionAwaiter
  • 9c9a79b Updated changelog to reflect the latest changes
  • 9e40d37 Fix #224 - handle immidiate success scenario (#228)
  • 3c9f345 Fixed a bug in the shutdown behavior of a polling thread. The wrong time unit...
  • c4962d8 Update README.md
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Apr 3, 2023
@dependabot dependabot bot force-pushed the dependabot/gradle/org.awaitility-awaitility-groovy-4.2.0 branch from f20ea4f to 8812cd5 Compare April 4, 2023 07:40
@dondonz
Copy link
Member

dondonz commented Apr 9, 2023

groovy.json was moved out into a separate package, groovy-json. This needs to be added as a separate dependency.

Groovy's coordinates have changed from org.codehaus.groovy to org.apache.groovy. New releases are still released with the old coordinates. I tried the new Apache coordinates and got a compatibility problem, so I'll stick with Codehaus for now.

testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
testImplementation 'org.codehaus.groovy:groovy:3.0.16'
testImplementation 'org.codehaus.groovy:groovy:3.0.17'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well update Groovy while I'm here. This was released at the end of March.

testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
testImplementation 'org.codehaus.groovy:groovy:3.0.16'
testImplementation 'org.codehaus.groovy:groovy:3.0.17'
testImplementation 'org.codehaus.groovy:groovy-json:3.0.17'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JSON related classes were moved into a separate artifact

@dondonz dondonz added this pull request to the merge queue Apr 9, 2023
Merged via the queue into master with commit 69a51a7 Apr 9, 2023
@dependabot dependabot bot deleted the dependabot/gradle/org.awaitility-awaitility-groovy-4.2.0 branch April 9, 2023 04:55
@dondonz dondonz added the not release related changes which are not released (for example unit tests or docs) label Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code not release related changes which are not released (for example unit tests or docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants