Replace WireMock constructors removed in 4.x
MSALWireMock 4 made its primary domain classes immutable, leaving only the canonical all arguments constructor on each and moving everything else behind a builder. Replace the removed convenience constructors of StubMapping, ResponseDefinition, RequestPattern and WireMock with the equivalent builder call, RequestPattern.everything() with RequestPattern.ANYTHING, and the no-arg InMemoryRequestJournalStore constructor with the one taking a null, meaning unbounded, maximum number of entries. That includes the super() call of subclasses, and a journal limit passed to StoreBackedRequestJournal moves onto its in-memory store.
org. openrewrite. java. testing. wiremock. ReplaceRemovedConstructorsmod run . --recipe= org. openrewrite. java. testing. wiremock. ReplaceRemovedConstructorsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.