java.lang.Object
io.cucumber.prettyformatter.Theme.Builder
- Enclosing class:
Theme
-
Method Summary
Modifier and TypeMethodDescriptionbuild()bulletPointIcon(String icon) Adds a bullet point icon.progressIcon(io.cucumber.messages.types.TestStepResultStatus status, String icon) Adds a progress icon for the given status.statusIcon(io.cucumber.messages.types.TestStepResultStatus status, String icon) Adds a status icon for the given status.style(Theme.Element element, io.cucumber.messages.types.TestStepResultStatus status, Ansi style, Ansi resetStyle) Adds a style and reset style for an element.style(Theme.Element element, Ansi style, Ansi resetStyle) Adds a style and reset style for an element.
-
Method Details
-
style
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
-
bulletPointIcon
Adds a bullet point icon.Visually the bullet point icon must be 1-space wide.
- Parameters:
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 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
-