Package net.jqwik.api

Schnittstelle SampleReportingFormat

Alle Superschnittstellen:
Comparable<SampleReportingFormat>
Alle bekannten Implementierungsklassen:
JavaBeanReportingFormat

@API(status=MAINTAINED, since="1.4.0") public interface SampleReportingFormat extends Comparable<SampleReportingFormat>
  • Methodendetails

    • plainLabel

      static Object plainLabel(String plain)
      Use in report(Object) if you just want to report a plain label and not a String in quotes.
      Parameter:
      plain - String to report
      Gibt zurück:
      an object that will be reported as a plain label
    • appliesTo

      boolean appliesTo(Object value)
      Parameter:
      value - the value to format
      Gibt zurück:
      true if this format applies
    • report

      Object report(Object value)
      Transform the value into one that will be handled by default mechanism, e.g. a Collection, a String, a Map.
      Parameter:
      value - the value to format
      Gibt zurück:
      the transformed value
    • label

      default Optional<String> label(Object value)
      Parameter:
      value - the value to format
      Gibt zurück:
      an optional label prepended to a value's report
    • priority

      default int priority()
      Higher priorities have precedence.
      Gibt zurück:
      priority with which to apply this format
    • compareTo

      @API(status=INTERNAL) default int compareTo(SampleReportingFormat other)
      Angegeben von:
      compareTo in Schnittstelle Comparable<SampleReportingFormat>