Class MessagesToHtmlWriter.Builder

    • Method Detail

      • title

        public MessagesToHtmlWriter.Builder title​(String title)
        Sets a custom title for the report, default value "Cucumber".
        Parameters:
        title - the custom title.
        Returns:
        this builder
      • icon

        public MessagesToHtmlWriter.Builder icon​(Supplier<InputStream> icon)
        Sets a custom icon for the report, default value the cucumber logo.

        The icon is any valid href value.

        Parameters:
        icon - a supplier for the custom icon.
        Returns:
        this builder
      • icon

        public MessagesToHtmlWriter.Builder icon​(String icon)
        Sets a custom icon for the report, default value the cucumber logo.

        The icon is any valid href value.

        Parameters:
        icon - the custom icon.
        Returns:
        this builder
      • script

        public MessagesToHtmlWriter.Builder script​(Supplier<InputStream> script)
        Replaces default script for the report.

        The default script renders the cucumber messages into a report. Unless you are building yourMessagesToHtmlWriter own html report you should use customScript(Supplier) instead.

        Parameters:
        script - a supplier for the default script.
        Returns:
        this builder
      • customScript

        public MessagesToHtmlWriter.Builder customScript​(Supplier<InputStream> customScript)
        Sets custom script for the report.

        The custom script is applied after the default script.

        Parameters:
        customScript - a supplier for the custom script.
        Returns:
        this builder
      • build

        public MessagesToHtmlWriter build​(OutputStream out)
        Create an instance of the messages to html writer.
        Parameters:
        out - the output stream to write to
        Returns:
        a new instance of the messages to html writer.