Interface Formatter<T>

Type Parameters:
T - the type of the object to format
All Known Implementing Classes:
DefaultFormatter, DefaultObjectFormatter

public interface Formatter<T>
Interface for defining a global argument formatter.

Instances of this formatter can be globally configured with the JGivenConfiguration by providing concrete implementation of the AbstractJGivenConfiguration class.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    format(T argumentToFormat, Annotation... annotations)
    Formats a step method argument.
  • Method Details

    • format

      String format(T argumentToFormat, Annotation... annotations)
      Formats a step method argument.
      Parameters:
      argumentToFormat - the argument object to format
      annotations - list of annotations that the method parameter is annotated with
      Returns:
      a formatted string