Migrate injected TestRestTemplate GET tests to RestTestClient

Proprietary

Migrate @Autowired TestRestTemplate fields in live-server @SpringBootTest classes to RestTestClient with @AutoConfigureRestTestClient. Convert getForObject and getForEntity GET requests, including local response variables used only for body, status and header access, preserving existing assertions and request counts. Leave classes with unsupported client configuration or usage unchanged.

io.moderne.java.spring.boot4.MigrateTestRestTemplateToRestTestClient
mod run . --recipe=io.moderne.java.spring.boot4.MigrateTestRestTemplateToRestTestClient

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