-
-
Notifications
You must be signed in to change notification settings - Fork 248
ReleaseNotes40
Johan Haleby edited this page Aug 30, 2019
·
3 revisions
Released at: 2019-08-30
- Awaitility now requires Java 8 or above. This means that a lot of code could be removed internally as well as allowing an updated set of dependencies.
- The API has been updated to use
java.time.Durationinstead oforg.awaitility.Duration(see backward incompatible changes for more info). - Better handling of InterruptedException using code from Guava (Uninterruptibles#sleepUninterruptibly) (issue 134)
- Added support for Adder's. For example:
await().untilAdder(myLongAdder, equalTo(5L)) - Added support for Accumulators's. For example:
await().untilAccumulator(myLongAccumulator, equalTo(5L)) - Scala version is updated from 2.11.8 to 2.13.0
- Upgraded Groovy from 2.4.11 to 2.5.7
- Hamcrest is update from version 1.3 to 2.1
- Removed the awaitility-proxy module since it's no longer required when using Java 8+
- Removed
org.awaitility.Duration, usejava.time.Durationinstead. Constants such asONE_SECOND,TWO_HUNDRED_MILLISECONDSetc have been moved toorg.awaitility.Durations. - Removed the
org.awaitility.core.Predicateinterface, usejava.util.function.Predicateinstead. - Removed the
org.awaitility.core.BiFunctioninterface, usejava.util.function.BiFunctioninstead. - Removed the
org.awaitility.core.Supplierinterface, usejava.util.function.Supplierinstead. - Replaced
IllegalStateExceptionwithIllegalArgumentExceptionwhen constructing erroneousConditionSettings
Refer to the change log.