Class Theme.Builder

java.lang.Object
io.cucumber.prettyformatter.Theme.Builder
Enclosing class:
Theme

public static final class Theme.Builder extends Object
  • Method Details

    • style

      public Theme.Builder style(Theme.Element element, Ansi style, Ansi resetStyle)
      Adds a style and reset style for an element.
      Parameters:
      element - the element to style
      style - the ansi style to apply
      resetStyle - the ansi style to reset the applied styling
      Returns:
      this builder
    • statusIcon

      public Theme.Builder statusIcon(io.cucumber.messages.types.TestStepResultStatus status, String icon)
      Adds a status icon for the given status.

      Visually the status icon must be 1-space wide.

      Parameters:
      status - the status for which the icon is used
      icon - the icon
      Returns:
      this builder
    • progressIcon

      public Theme.Builder progressIcon(io.cucumber.messages.types.TestStepResultStatus status, String icon)
      Adds a progress icon for the given status.

      Visually the status icon must be 1-space wide.

      Parameters:
      status - the status for which the icon is used
      icon - the icon
      Returns:
      this builder
    • style

      public Theme.Builder style(Theme.Element element, io.cucumber.messages.types.TestStepResultStatus status, Ansi style, Ansi resetStyle)
      Adds a style and reset style for an element.
      Parameters:
      element - the element to style
      status - the status of the element to style
      style - the ansi style to apply
      resetStyle - the ansi style to reset the applied styling
      Returns:
      this builder
    • build

      public Theme build()