Migrate MockMvc to MockMvcTester
ProprietaryConverts MockMvc fields and initialization to MockMvcTester. Changes field types, renames fields from mockMvc to mockMvcTester, and converts MockMvcBuilders.standaloneSetup().build() to MockMvcTester.of() and MockMvcBuilders.webAppContextSetup().build() to MockMvcTester.from(). Other ways of building a MockMvc are wrapped in MockMvcTester.create(). Leaves alone source files that use MockMvc in ways MockMvcTester does not support, such as chaining on the result of perform() or passing a MockMvc to a method.
io. moderne. java. spring. boot4. MockMvcToMockMvcTestermod run . --recipe= io. moderne. java. spring. boot4. MockMvcToMockMvcTesterInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.