WireMock with delayed callbacks
Demonstration of extending WireMock to trigger a delayed callback.
Here you can find:
-
A WireMock extension that responds to a contract for delayed callback and calls back some time later as specified by its parameters.
-
An extension method on WireMock Parameters class for reading Kotlin
Double
values. -
A functional test of delayed callback that can be run using Batect with
./batect callbackTest
Extending WireMock for delayed callbacks describes the extension in more detail.