Migrate MockMvc andExpect() chains to AssertJ assertions

Proprietary

Converts MockMvc Hamcrest-style andExpect() assertion chains to AssertJ-style fluent assertions using assertThat(). Handles status, content, JSON path, header, redirect, and forward assertions, and keeps other result matchers and handlers through matches(..) and apply(..).

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

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