Setup
RECORDO
Maven Dependencies
All Modules
To add all modules at once into your project, you can use the recordo-all
artifact with the pom
type.
Read Module
Assertions Module
MockMvc Module
MockServer Module
Initialize Extension
To set up Recordo for your test, simply use the RecordoExtension
.
ObjectMapper
Recordo uses the Jackson ObjectMapper for JSON operations. The logic for locating the ObjectMapper instance is as follows:
As the highest priority, the ObjectMapper field annotated with the
@EnableRecordo
annotation will be used, if present.If Spring is being used and the test doesn't have a field, the library will use the ObjectMapper bean from the Spring context if available.
In all cases other than the specific ones where a custom ObjectMapper instance is provided, the library will utilize its default Recordo ObjectMapper instance.
Last updated