Skip to content

Latest commit

 

History

History
executable file
·
40 lines (30 loc) · 2.46 KB

README.md

File metadata and controls

executable file
·
40 lines (30 loc) · 2.46 KB

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