Class ExpectationWriter

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class ExpectationWriter extends HeaderWriter<Expectation>
Expectation header writer.
Author:
Jerome Louvel
  • Constructor Details

    • ExpectationWriter

      public ExpectationWriter()
  • Method Details

    • write

      public static String write(List<Expectation> expectations)
      Writes a list of expectations with a comma separator.
      Parameters:
      expectations - The list of expectations.
      Returns:
      The formatted list of expectations.
    • append

      public ExpectationWriter append(Expectation expectation)
      Description copied from class: HeaderWriter
      Appends a value.
      Specified by:
      append in class HeaderWriter<Expectation>
      Parameters:
      expectation - The value.
      Returns:
      This writer.