java.lang.Object
net.thucydides.core.reports.html.Formatter
Format text for HTML reports.
In particular, this integrates JIRA links into the generated reports.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddLineBreaks(String text) static StringaddMarkdownLineBreaks(String text) breadcrumbFormat(String parent, String child) convertAnyTables(String text) escapedXML(String text) formatWithFields(String textToFormat) htmlAttributeCompatible(Object fieldValue) htmlAttributeCompatible(Object fieldValue, boolean renderNewLines) htmlAttributeCompatible(Object fieldValue, int maxLength) htmlCompatible(Object fieldValue) htmlCompatibleStepDescription(Object fieldValue) htmlCompatibleStoryTitle(Object fieldValue) htmlCompatibleTestTitle(Object fieldValue) humanReadableFormOf(String text) humanReadableTitle(String text) javascriptCompatible(Object value) messageBody(String message) plainHtmlCompatible(Object fieldValue) renderDescription(String text) renderDescriptionWithEmbeddedResults(String text, RequirementsOutcomes requirementsOutcomes) renderDescriptionWithFormattedTables(String text, RequirementsOutcomes requirementsOutcomes) renderHeaders(String text) renderMarkdown(String text) renderTableDescription(String text, RequirementsOutcomes requirementsOutcomes) renderText(String text) renderTitle(String text) truncatedHtmlCompatible(String text, int length)
-
Field Details
-
FOUR_SPACES
- See Also:
-
TAB
- See Also:
-
NEW_LINE_ON_ANY_OS
- See Also:
-
UTF_8_NEW_LINE
- See Also:
-
UNICODE_CHARS_ESCAPE
-
-
Constructor Details
-
Formatter
-
Formatter
public Formatter()
-
-
Method Details
-
renderMarkdown
-
renderMarkdownWithoutTags
-
escapedXML
-
renderText
-
renderHeaders
-
renderTitle
-
breadcrumbFormat
-
renderHtmlEscapedDescription
-
renderDescription
-
renderDescriptionWithEmbeddedResults
public String renderDescriptionWithEmbeddedResults(String text, RequirementsOutcomes requirementsOutcomes) -
renderDescriptionWithFormattedTables
-
renderDescriptionWithFormattedTables
public String renderDescriptionWithFormattedTables(String text, RequirementsOutcomes requirementsOutcomes) -
renderTableDescription
-
addLineBreaks
-
addMarkdownLineBreaks
-
convertAnyTables
-
htmlCompatible
-
tagLabel
-
javascriptCompatible
-
messageBody
-
restQuery
-
htmlCompatibleStoryTitle
-
htmlCompatibleTestTitle
-
htmlCompatibleStepDescription
-
plainHtmlCompatible
-
htmlAttributeCompatible
-
htmlAttributeCompatible
-
htmlAttributeCompatible
-
resultIcon
-
contextIcon
-
resultRank
-
truncatedHtmlCompatible
-
humanReadableFormOf
-
humanReadableTitle
-
formatWithFields
-