Package net.thucydides.core.reports.html
Class Formatter
- java.lang.Object
-
- net.thucydides.core.reports.html.Formatter
-
public class Formatter extends Object
Format text for HTML reports. In particular, this integrates JIRA links into the generated reports.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFOUR_SPACESstatic StringNEW_LINE_ON_ANY_OSstatic StringTABstatic String[][]UNICODE_CHARS_ESCAPEstatic StringUTF_8_NEW_LINE
-
Constructor Summary
Constructors Constructor Description Formatter()Formatter(EnvironmentVariables environmentVariables)
-
Method Summary
-
-
-
Field Detail
-
FOUR_SPACES
public static final String FOUR_SPACES
- See Also:
- Constant Field Values
-
TAB
public static final String TAB
- See Also:
- Constant Field Values
-
NEW_LINE_ON_ANY_OS
public static final String NEW_LINE_ON_ANY_OS
- See Also:
- Constant Field Values
-
UTF_8_NEW_LINE
public static final String UTF_8_NEW_LINE
- See Also:
- Constant Field Values
-
UNICODE_CHARS_ESCAPE
public static String[][] UNICODE_CHARS_ESCAPE
-
-
Constructor Detail
-
Formatter
@Inject public Formatter(EnvironmentVariables environmentVariables)
-
Formatter
public Formatter()
-
-
Method Detail
-
renderDescriptionWithEmbeddedResults
public String renderDescriptionWithEmbeddedResults(String text, RequirementsOutcomes requirementsOutcomes)
-
renderDescriptionWithFormattedTables
public String renderDescriptionWithFormattedTables(String text)
-
renderDescriptionWithFormattedTables
public String renderDescriptionWithFormattedTables(String text, RequirementsOutcomes requirementsOutcomes)
-
renderTableDescription
public String renderTableDescription(String text, RequirementsOutcomes requirementsOutcomes)
-
htmlAttributeCompatible
public String htmlAttributeCompatible(Object fieldValue, boolean renderNewLines)
-
resultIcon
public ResultIconFormatter resultIcon()
-
resultRank
public ResultRankingFormatter resultRank()
-
-