Migrate RequestMethod.isOneOf to the matcher it became

MSAL

WireMock 3's isOneOf was an instance method answering whether the method was one of those given. In 4.x it is static and builds a matcher instead, so method.isOneOf(GET, POST) quietly stops being a boolean. Rewrite it as RequestMethod.isOneOf(GET, POST).match(method).isExactMatch(), which asks the same question of the new API.

org.openrewrite.java.testing.wiremock.MigrateRequestMethodIsOneOf
mod run . --recipe=org.openrewrite.java.testing.wiremock.MigrateRequestMethodIsOneOf

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.