Move WireMock types to their 4.x packages

MSAL

Change WireMock types that moved packages in WireMock 4.x, such as the Jetty, servlet and Apache HTTP client classes.

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

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

Recipe list

It runs these recipes, in this order.

  1. Change type com.github.tomakehurst.wiremock.jetty11.CertificateGeneratingSslContextFactory to com.github.tomakehurst.wiremock.jetty.ssl.CertificateGeneratingSslContextFactory
  2. Change type com.github.tomakehurst.wiremock.jetty11.HttpsProxyDetectingHandler to com.github.tomakehurst.wiremock.jetty.proxy.HttpsProxyDetectingHandler
  3. Change type com.github.tomakehurst.wiremock.jetty11.ManInTheMiddleSslConnectHandler to com.github.tomakehurst.wiremock.jetty.proxy.ManInTheMiddleSslConnectHandler
  4. Change type com.github.tomakehurst.wiremock.jetty11.NotFoundHandler to com.github.tomakehurst.wiremock.jetty.NotFoundHandler
  5. Change type com.github.tomakehurst.wiremock.jetty11.SslContexts to com.github.tomakehurst.wiremock.jetty.ssl.SslContexts
  6. Change type com.github.tomakehurst.wiremock.jetty11.WritableFileOrClasspathKeyStoreSource to com.github.tomakehurst.wiremock.common.ssl.WritableFileOrClasspathKeyStoreSource
  7. Change type com.github.tomakehurst.wiremock.jetty12.HttpProxyDetectingHandler to com.github.tomakehurst.wiremock.jetty.proxy.HttpProxyDetectingHandler
  8. Change type com.github.tomakehurst.wiremock.jetty12.HttpsProxyDetectingHandler to com.github.tomakehurst.wiremock.jetty.proxy.HttpsProxyDetectingHandler
  9. Change type com.github.tomakehurst.wiremock.jetty12.Jetty12HttpServer to com.github.tomakehurst.wiremock.jetty.Jetty12HttpServer
  10. Change type Jetty12HttpServerFactory to JettyHttpServerFactory
  11. Change type com.github.tomakehurst.wiremock.jetty12.Jetty12HttpUtils to com.github.tomakehurst.wiremock.jetty.Jetty12HttpUtils
  12. Change type com.github.tomakehurst.wiremock.jetty12.ManInTheMiddleSslConnectHandler to com.github.tomakehurst.wiremock.jetty.proxy.ManInTheMiddleSslConnectHandler
  13. Change type com.github.tomakehurst.wiremock.jetty12.NotFoundHandler to com.github.tomakehurst.wiremock.jetty.NotFoundHandler
  14. Change type com.github.tomakehurst.wiremock.jetty.JettyFaultInjector to com.github.tomakehurst.wiremock.jetty.faults.JettyFaultInjector
  15. Change type com.github.tomakehurst.wiremock.jetty.JettyFaultInjectorFactory to com.github.tomakehurst.wiremock.jetty.faults.JettyFaultInjectorFactory
  16. Change type com.github.tomakehurst.wiremock.jetty.JettyHttpsFaultInjector to com.github.tomakehurst.wiremock.jetty.faults.JettyHttpsFaultInjector
  17. Change type com.github.tomakehurst.wiremock.servlet.ContentTypeSettingFilter to com.github.tomakehurst.wiremock.jetty.servlet.ContentTypeSettingFilter
  18. Change type com.github.tomakehurst.wiremock.servlet.FaultInjectorFactory to com.github.tomakehurst.wiremock.jetty.servlet.FaultInjectorFactory
  19. Change type com.github.tomakehurst.wiremock.servlet.NoFaultInjector to com.github.tomakehurst.wiremock.jetty.servlet.NoFaultInjector
  20. Change type com.github.tomakehurst.wiremock.servlet.NoFaultInjectorFactory to com.github.tomakehurst.wiremock.jetty.servlet.NoFaultInjectorFactory
  21. Change type com.github.tomakehurst.wiremock.servlet.NotMatchedServlet to com.github.tomakehurst.wiremock.jetty.servlet.NotMatchedServlet
  22. Change type com.github.tomakehurst.wiremock.servlet.TrailingSlashFilter to com.github.tomakehurst.wiremock.jetty.servlet.TrailingSlashFilter
  23. Change type com.github.tomakehurst.wiremock.servlet.WarConfiguration to com.github.tomakehurst.wiremock.jetty.servlet.WarConfiguration
  24. Change type com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet to com.github.tomakehurst.wiremock.jetty.WireMockHandlerDispatchingServlet
  25. Change type com.github.tomakehurst.wiremock.servlet.WireMockHttpServletMultipartAdapter to com.github.tomakehurst.wiremock.jetty.servlet.WireMockHttpServletMultipartAdapter
  26. Change type com.github.tomakehurst.wiremock.servlet.WireMockHttpServletRequestAdapter to com.github.tomakehurst.wiremock.jetty.WireMockHttpServletRequestAdapter
  27. Change type com.github.tomakehurst.wiremock.servlet.WireMockWebContextListener to com.github.tomakehurst.wiremock.jetty.servlet.WireMockWebContextListener
  28. Change type com.github.tomakehurst.wiremock.common.ServletContextFileSource to com.github.tomakehurst.wiremock.jetty.servlet.ServletContextFileSource
  29. Change type com.github.tomakehurst.wiremock.common.JettySettings to com.github.tomakehurst.wiremock.jetty.JettySettings
  30. Change type com.github.tomakehurst.wiremock.http.client.ApacheBackedHttpClient to com.github.tomakehurst.wiremock.http.client.apache5.ApacheBackedHttpClient
  31. Change type com.github.tomakehurst.wiremock.http.client.ApacheHttpClientFactory to com.github.tomakehurst.wiremock.http.client.apache5.ApacheHttpClientFactory
  32. Change type com.github.tomakehurst.wiremock.http.NetworkAddressRulesAdheringDnsResolver to com.github.tomakehurst.wiremock.http.client.apache5.NetworkAddressRulesAdheringDnsResolver
  33. Change type com.github.tomakehurst.wiremock.http.ssl.TrustSelfSignedStrategy to com.github.tomakehurst.wiremock.http.client.apache5.TrustSelfSignedStrategy
  34. Change type com.github.tomakehurst.wiremock.http.HttpClientFactory to com.github.tomakehurst.wiremock.http.client.HttpClientFactory
  35. Change type com.github.tomakehurst.wiremock.http.MimeType to com.github.tomakehurst.wiremock.common.entity.MimeType