-
-
Notifications
You must be signed in to change notification settings - Fork 249
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.Duration
instead 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.Duration
instead. Constants such asONE_SECOND
,TWO_HUNDRED_MILLISECONDS
etc have been moved toorg.awaitility.Durations
. - Removed the
org.awaitility.core.Predicate
interface, usejava.util.function.Predicate
instead. - Removed the
org.awaitility.core.BiFunction
interface, usejava.util.function.BiFunction
instead. - Removed the
org.awaitility.core.Supplier
interface, usejava.util.function.Supplier
instead. - Replaced
IllegalStateException
withIllegalArgumentException
when constructing erroneousConditionSettings
Refer to the change log.