Package de.ppi.deepsampler.junit.json
Annotation Type UseJsonDeserializer
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Repeatable(UseJsonDeserializers.class)
public @interface UseJsonDeserializer
This annotation can be used to register a
JsonDeserializer for the underlying Jackson JSON parser.
The annotation can be placed on
- a test method
- the class that declares the test method
- the method
SamplerFixture.defineSamplers() - the class that defines the method defineSamplers
UseJsonDeserializer is used at more than one of the aforementioned places, and several of them define JsonDeserializers
for the same type, the ones on top of the aforementioned list, override the lower ones.-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends com.fasterxml.jackson.databind.JsonDeserializer<?>>deserializerDefines the class of the concreteJsonDeserializerjava.lang.Class<?>forTypeTheClassfor which the deserializer should be used.
-
Element Details
-
deserializer
java.lang.Class<? extends com.fasterxml.jackson.databind.JsonDeserializer<?>> deserializerDefines the class of the concreteJsonDeserializer- Returns:
- The class of the concrete
JsonDeserializer
-
forType
java.lang.Class<?> forTypeTheClassfor which the deserializer should be used.- Returns:
- The
Classfor which the deserializer should be used.
-