Annotation that can be used in combination with
@RunWith(SpringRunner.class)
for a typical JSON test. Can be used when a test focuses
only on JSON
serialization.
Using this annotation will disable full auto-configuration and instead apply only
configuration relevant to JSON tests (i.e. @JsonComponent
, Jackson
Module
)
By default, tests annotated with JsonTest
will also initialize
JacksonTester
, JsonbTester
and GsonTester
fields. More
fine-grained control can be provided via the
@AutoConfigureJsonTesters
annotation.