Skip to content

Awaitility is a small Java DSL for synchronizing asynchronous operations

License

Notifications You must be signed in to change notification settings

aiannucci/awaitility

 
 

Repository files navigation

Awaitility

Build Status Maven Central Javadoc

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

About

Awaitility is a small Java DSL for synchronizing asynchronous operations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 93.4%
  • Groovy 5.3%
  • Scala 1.3%