Package com.spun.util.tests
Class TestUtils
java.lang.Object
com.spun.util.tests.TestUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Filestatic Stringstatic doublestatic voidregisterOpener(Opener opener) registerSourceDirectoryFinder(Function2<Class, String, File> sourceDirectoryFinder) static StringunrollLambda(String methodName)
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
registerSourceDirectoryFinder
public static TestUtils.SourceDirectoryRestorer registerSourceDirectoryFinder(Function2<Class, String, File> sourceDirectoryFinder) -
getFile
-
displayXml
-
getRandomString
-
displayHtml
-
displayHtmlFile
-
displayHtmlFile
-
displayHtml
-
displayHtml
-
displayText
-
displayExcel
-
registerOpener
-
displayFile
-
getTimerMultiplier
public static double getTimerMultiplier() -
displayImage
-
getCurrentFileForMethod
-
getCurrentFileForMethod
public static StackTraceReflectionResult getCurrentFileForMethod(StackElementSelector stackElementSelector) -
getCurrentFileForMethod
public static StackTraceReflectionResult getCurrentFileForMethod(StackElementSelector stackElementSelector, StackTraceElement[] trace) -
unrollLambda
-