Package com.spun.util.tests
Class TestUtils
java.lang.Object
com.spun.util.tests.TestUtils
public class TestUtils extends Object
-
Constructor Summary
Constructors Constructor Description TestUtils() -
Method Summary
Modifier and Type Method Description static voiddisplayEmail(javax.mail.Message email)static voiddisplayExcel(String output)static voiddisplayFile(String fileName)static voiddisplayHtml(String htmlOutput)static voiddisplayHtml(String outputFile, String htmlOutput)static voiddisplayHtml(String outputFile, String fileExtention, String htmlOutput, int secondsTimeout)static voiddisplayHtmlFile(File file)static voiddisplayHtmlFile(String fileName)static voiddisplayImage(BufferedImage image)static voiddisplayText(String output)static voiddisplayXml(String htmlOutput)static StackTraceReflectionResultgetCurrentFileForMethod(int ignoreLevels)static StackTraceReflectionResultgetCurrentFileForMethod(StackElementSelector stackElementSelector)static StackTraceReflectionResultgetCurrentFileForMethod(StackElementSelector stackElementSelector, StackTraceElement[] trace)static FilegetFile(String startingDir)static StringgetRandomString()static doublegetTimerMultiplier()static StringunrollLambda(String methodName)
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
getFile
-
displayXml
-
getRandomString
-
displayHtml
-
displayHtmlFile
- Throws:
IOException
-
displayHtmlFile
- Throws:
IOException
-
displayHtml
public static void displayHtml(String outputFile, String htmlOutput) throws FileNotFoundException, IOException, InterruptedException -
displayHtml
-
displayText
- Throws:
IOExceptionInterruptedException
-
displayExcel
- Throws:
IOExceptionInterruptedException
-
displayEmail
public static void displayEmail(javax.mail.Message email) -
displayFile
-
getTimerMultiplier
- Throws:
InterruptedException
-
displayImage
- Throws:
Exception
-
getCurrentFileForMethod
-
getCurrentFileForMethod
public static StackTraceReflectionResult getCurrentFileForMethod(StackElementSelector stackElementSelector) -
getCurrentFileForMethod
public static StackTraceReflectionResult getCurrentFileForMethod(StackElementSelector stackElementSelector, StackTraceElement[] trace) -
unrollLambda
-