|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.testng.util.FormatUtil
public class FormatUtil
| Constructor Summary | |
|---|---|
FormatUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
formatLong(long value)
Formats a long value and prepends it with a - or + This functions is used for showing the diff values for test runs |
static java.lang.String |
formatStackTraceForHTML(java.lang.String stackTrace)
Formats the stack trace for easier readability |
static java.lang.String |
formatTimeInMilliSeconds(long duration)
Formats the time into mill |
static java.lang.String |
replaceNewLineWithBR(java.lang.String str)
Replaces newline characters in string with <br/> to retain
the newlines when the string is displayed in HTML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatUtil()
| Method Detail |
|---|
public static java.lang.String formatTimeInMilliSeconds(long duration)
duration -
public static java.lang.String formatLong(long value)
value - - long value
public static java.lang.String replaceNewLineWithBR(java.lang.String str)
<br/> to retain
the newlines when the string is displayed in HTML
str -
public static java.lang.String formatStackTraceForHTML(java.lang.String stackTrace)
stackTrace -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||