Skip to content

Awaitility is a small Java DSL for synchronizing asynchronous operations

License

Notifications You must be signed in to change notification settings

bentatham/awaitility

 
 

Repository files navigation

Awaitility

Build Status

Testing asynchronous systems is hard. Not only does it require handling threads, timeouts and concurrency issues, but the intent of the test code can be obscured by all these details. Awaitility is a DSL that allows you to express expectations of an asynchronous system in a concise and easy to read manner. For example:

@Test
public void updatesCustomerStatus() throws Exception {
    // Publish an asynchronous event:
    publishEvent(updateCustomerStatusEvent);
    // Awaitility lets you wait until the asynchronous operation completes:
    await().atMost(5, SECONDS).until(customerStatusIsUpdated());
    ...
}

News

Older news

Documentation

Links

Sponsored by:

jayway

About

Awaitility is a small Java DSL for synchronizing asynchronous operations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 93.9%
  • Groovy 5.0%
  • Scala 1.1%