Class JsonConverter

  • All Implemented Interfaces:
    org.junit.jupiter.params.converter.ArgumentConverter

    public class JsonConverter
    extends java.lang.Object
    implements org.junit.jupiter.params.converter.ArgumentConverter
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(java.lang.Object source, org.junit.jupiter.api.extension.ParameterContext context)
      Convert the supplied source object according to the supplied context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonConverter

        public JsonConverter()
    • Method Detail

      • convert

        public java.lang.Object convert​(java.lang.Object source,
                                        org.junit.jupiter.api.extension.ParameterContext context)
        Convert the supplied source object according to the supplied context.
        Specified by:
        convert in interface org.junit.jupiter.params.converter.ArgumentConverter
        Parameters:
        source - the source object to convert; may be null
        context - the parameter context where the converted object will be used; never null
        Returns:
        the converted object; may be null but only if the target type is a reference type
        Throws:
        org.junit.jupiter.params.converter.ArgumentConversionException - if an error occurs during the conversion