Awaitility - Utility Bibliothek zum einfacheren Testen von asynchronem Code

Thomas Darimont

Erfahrenes Mitglied
Hallo,

schaut mal hier:
https://code.google.com/p/awaitility/

Java:
@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(costumerStatusIsUpdated());
    ...
}

Gruß Tom
 

Neue Beiträge

Zurück