Skip to content

OldNews

Johan Haleby edited this page Apr 28, 2017 · 39 revisions
  • 2017-03-17: Awaitility 3.0.0-rc1 is released. It includes several bug fixes and some major (non-backward compatible) changes:  
  1. The proxy creation is now done by bytebuddy instead of cglib and this has been extracted to its own project called awaitility-proxy. This means that if you need to use proxies depend on this project in addition to vanilla awaitility:

    <dependency>
        <groupId>org.awaitility</groupId>
        <artifactId>awaitility-proxy</artifactId>
        <version>3.0.0-rc1</version>
    </dependency>

    You create a proxy when you do:

    await().untilCall( to(someObject).someMethod(), is(4) );

    The to method has been moved to "org.awaitility.proxy.AwaitilityClassProxy" in the awaitility-proxy project.

  2. The until(Runnable ...) method in org.awaitility.core.ConditionFactory is renamed to untilAsserted(Runnable ...). This means that if you previously did:    

    await().until(() -> assertThat(something()).isEqualTo("Something"));

    you now need to do:

    await().untilAsserted(() -> assertThat(something()).isEqualTo("Something"));
To use it depend on:
    
```xml    
<dependency>
    <groupId>org.awaitility</groupId>
    <artifactId>awaitility</artifactId>
    <version>3.0.0-rc1</version>
</dependency>
``` 

Please help out and test it and provide feedback

Clone this wiki locally