Use the Jackson 3 object mapper factory of REST Assured
Apache 2.0REST Assured 6 configures Jackson 3 through jackson3ObjectMapperFactory and ObjectMapperType.JACKSON_3, next to their Jackson 2 counterparts, which do not accept a Jackson 3 ObjectMapper.
org. openrewrite. java. jackson. UpgradeJackson_2_3_RestAssuredmod run . --recipe= org. openrewrite. java. jackson. UpgradeJackson_2_3_RestAssuredInstall 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 method name
io.restassured.config.ObjectMapperConfig jackson2ObjectMapperFactory(..)tojackson3ObjectMapperFactory - Change type
Jackson2ObjectMapperFactorytoJackson3ObjectMapperFactory - Change type
DefaultJackson2ObjectMapperFactorytoDefaultJackson3ObjectMapperFactory - Replace constant with another constant