Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

awaitility

> 测试质量
Open source

Awaitility is a small Java DSL for synchronizing asynchronous operations

4.0K stars0 likes4 views
WebsiteGitHub

About

Awaitility is a small Java DSL for synchronizing asynchronous operations

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:

java
@Test
public void updatesCustomerStatus() {
    // Publish an asynchronous message to a broker (e.g. RabbitMQ):
    messageBroker.publishMessage(updateCustomerStatusMessage);
    // Awaitility lets you wait until the asynchronous operation completes:
    await().atMost(Duration.ofSeconds(5)).until(customerStatusIsUpdated());
    ...
}

News

  • 2026-04-17: Awaitility 4.3.1 is released with configurable default timeout/poll settings via system properties, documentation updates, and dependency/build improvements. See changelog for details.
  • 2025-02-21: Awaitility 4.3.0 is released with better Kotlin time support and a new way of using untilAsserted. See changelog for details.
  • 2024-08-07: Awaitility 4.2.2 is released with support for "ea" JVM versions. See changelog for details.

Older news

Documentation

  • Getting started
  • Usage Guide
  • Awaitility Javadoc

Links

  • Change log
  • Awaitility on Open Hub
  • Mailing list for questions and support

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaasynchronousawaitilityjavatesting

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category测试质量
PricingOpen source

> Related tools

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.