Files
spring-async-demo/awaitility/docs/output/07-uncaught-exception-handler-swap.txt
Claude a7b76243fa Add awaitility module: testing async @Async/@Scheduled/@KafkaListener code without Thread.sleep
Covers replacing Thread.sleep with await() across a void @Async method, an
@EmbeddedKafka-backed @KafkaListener, and an already-running @Scheduled job;
verifies Awaitility 4.3.0's real defaults (10s timeout, 100ms poll interval)
and its default-uncaught-exception-handler swap directly against the jar;
and documents a real pom.xml trap where Boot 4.1.1 split Kafka's
autoconfiguration (spring-boot-kafka) out of spring-kafka itself, which
silently leaves @KafkaListener beans with no running container.
2026-10-08 15:18:58 +00:00

7 lines
343 B
Plaintext

== Thread.getDefaultUncaughtExceptionHandler() before, during and after one await() call ==
handler during await() is the one this test installed: false (expected: false)
handler during await() is Awaitility's own (class org.awaitility.core.CallableCondition$1)
handler after await() is the one this test installed: true (expected: true)