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
* If 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<?>> deserializer
    Defines the class of the concrete JsonDeserializer
    java.lang.Class<?> forType
    The Class for which the deserializer should be used.
  • Element Details

    • deserializer

      java.lang.Class<? extends com.fasterxml.jackson.databind.JsonDeserializer<?>> deserializer
      Defines the class of the concrete JsonDeserializer
      Returns:
      The class of the concrete JsonDeserializer
    • forType

      java.lang.Class<?> forType
      The Class for which the deserializer should be used.
      Returns:
      The Class for which the deserializer should be used.