Migrate Spring Boot Testing to Quarkus Testing
MSALMigrates Spring Boot test annotations and utilities to Quarkus test equivalents. Converts @SpringBootTest to @QuarkusTest, @MockBean to @InjectMock, etc.
org. openrewrite. quarkus. spring. MigrateSpringTestingmod run . --recipe= org. openrewrite. quarkus. spring. MigrateSpringTestingInstall 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.
- Change Gradle or Maven dependency
org.springframework.boot:spring-boot-starter-test - Add Gradle or Maven dependency
io.quarkus:quarkus-junit5-mockito:x - Change type
SpringBootTesttoQuarkusTest - Change type
MockBeantoInjectMock - Change type
SpyBeantoInjectSpy - Remove annotation
org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc - Remove annotation
org.springframework.test.context.ActiveProfiles - Add Gradle or Maven dependency
io.rest-assured:rest-assured:5.x