hudson.plugins.testng.util
Class FormatUtil

java.lang.Object
  extended by hudson.plugins.testng.util.FormatUtil

public class FormatUtil
extends java.lang.Object


Constructor Summary
FormatUtil()
           
 
Method Summary
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

FormatUtil

public FormatUtil()
Method Detail

formatTimeInMilliSeconds

public static java.lang.String formatTimeInMilliSeconds(long duration)
Formats the time into mill

Parameters:
duration -
Returns:

replaceNewLineWithBR

public 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

Parameters:
str -
Returns:

formatStackTraceForHTML

public static java.lang.String formatStackTraceForHTML(java.lang.String stackTrace)
Formats the stack trace for easier readability

Parameters:
stackTrace -
Returns:


Copyright © 2010. All Rights Reserved.