Package io.cucumber.prettyformatter
Class Theme.Builder
- java.lang.Object
-
- io.cucumber.prettyformatter.Theme.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Themebuild()Theme.BuilderprogressIcon(io.cucumber.messages.types.TestStepResultStatus status, String icon)Adds a progress icon for the given status.Theme.BuilderstatusIcon(io.cucumber.messages.types.TestStepResultStatus status, String icon)Adds a status icon for the given status.Theme.Builderstyle(Theme.Element element, io.cucumber.messages.types.TestStepResultStatus status, Ansi style, Ansi resetStyle)Adds a style and reset style for an element.Theme.Builderstyle(Theme.Element element, Ansi style, Ansi resetStyle)Adds a style and reset style for an element.
-
-
-
Method Detail
-
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 stylestyle- the ansi style to applyresetStyle- 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 usedicon- 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 usedicon- 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 stylestatus- the status of the element to stylestyle- the ansi style to applyresetStyle- the ansi style to reset the applied styling- Returns:
- this builder
-
build
public Theme build()
-
-