Migrate MockMvc to AssertJ assertions
ProprietaryMigrates Spring MockMvc tests from Hamcrest-style andExpect() assertions to AssertJ-style fluent assertions. Changes MockMvc to MockMvcTester and converts assertion chains. Leaves alone source files with MockMvc usages that cannot be migrated, and the source files that share a MockMvc field with them.
io. moderne. java. spring. boot4. MigrateMockMvcToAssertJmod run . --recipe= io. moderne. java. spring. boot4. MigrateMockMvcToAssertJInstall 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.