-
-
Notifications
You must be signed in to change notification settings - Fork 248
ReleaseNotes20
-
Added atLeast support, for example:
await().atLeast(1, SECONDS).and().atMost(2, SECONDS).until(value(), equalTo(1));
Thanks to Oleksii for helping out.
-
Updates to the groovy module.
org.awaitility.groovy.AwailitySupport,org.awaitility.groovy.AwaitilityGroovyBridgeandorg.awaitility.groovy.AwaitilityTraithave been deprecated. The reason is that bothAwaitilitySupportandAwaitilityTraithave big flaws. When not used for one test class, these test cases might or might not fail, depending on execution order. For this anAwaitilityExtensionModulehas been created which automatically adds the new methoduntil(Closure)to the ConditionFactory. So with Groovy 2 and above, there is effectively no need any more to useAwaitilitySupport,AwaitilityTraitorAwaitilityGroovyBridge. All you need to do is addawaitility-groovyto your classpath and you are good. Thanks to Tobias Schulte for pull request. -
Improved Scala support. Previously only boolean expressions could be passed to
untilin Scala but now you can pass any supported type. For example you can now use assertj conditions:await until { assertThat(c1.count() + c2.count(), is(6)) }Thanks to Grzegorz Ligas for pull request
-
Awaitility now requires Java 6 (Java 5 was previously required)
-
The package name has been changed to
org.awaitilityfromcom.jayway.awaitility. A simple search-and-replace should be enough when upgrading. -
The groupId has been updated to
org.awaitilityfromcom.jayway.awaitility. So if you previously had this in yourpom.xml:<dependency> <groupId>com.jayway.awaitility</groupId> <artifactId>awaitility</artifactId> <version>${awaitility.version}</version> </dependency>
you should now change to:
<dependency> <groupId>org.awaitility</groupId> <artifactId>awaitility</artifactId> <version>${awaitility.version}</version> </dependency>
Refer to the change log.