Migrate injected TestRestTemplate GET tests to RestTestClient
ProprietaryMigrate @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. MigrateTestRestTemplateToRestTestClientmod run . --recipe= io. moderne. java. spring. boot4. MigrateTestRestTemplateToRestTestClientInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.