public class TestUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERNET_EXPLORER |
| Constructor and Description |
|---|
TestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertContains(String expecting,
String[] in) |
static void |
assertEqualArray(Object[] expected,
Object[] actual) |
static void |
assertEqualForMethods(String title,
Object expectedResult,
Object testResult,
String[] matchingMethods) |
static void |
assertForEach(String comment,
Object[] objects,
String method,
Object expectedResult) |
static void |
assertLength(int length,
List<?> list) |
static void |
assertLength(int length,
Object[] array) |
static void |
displayEmail(javax.mail.Message email) |
static void |
displayExcel(String output) |
static void |
displayFile(String fileName) |
static void |
displayHtml(String htmlOutput) |
static void |
displayHtml(String outputFile,
String htmlOutput) |
static void |
displayHtml(String outputFile,
String fileExtention,
String htmlOutput,
int secondsTimeout) |
static void |
displayHtmlFile(File file) |
static void |
displayHtmlFile(String fileName) |
static void |
displayImage(BufferedImage image) |
static void |
displayText(String output) |
static void |
displayXml(String htmlOutput) |
static StackTraceReflectionResult |
getCurrentFileForMethod(int ignoreLevels) |
static StackTraceReflectionResult |
getCurrentFileForMethod(StackElementSelector stackElementSelector) |
static StackTraceReflectionResult |
getCurrentFileForMethod(StackElementSelector stackElementSelector,
StackTraceElement[] trace) |
static File |
getFile(String startingDir) |
static String |
getRandomString() |
static double |
getTimerMultiplier() |
public static final String INTERNET_EXPLORER
public static void displayXml(String htmlOutput)
public static String getRandomString()
public static void displayHtml(String htmlOutput) throws FileNotFoundException, IOException, InterruptedException
public static void displayHtmlFile(String fileName) throws IOException
IOExceptionpublic static void displayHtmlFile(File file) throws IOException
IOExceptionpublic static void displayHtml(String outputFile, String htmlOutput) throws FileNotFoundException, IOException, InterruptedException
public static void displayHtml(String outputFile, String fileExtention, String htmlOutput, int secondsTimeout) throws FileNotFoundException, IOException, InterruptedException
public static void displayText(String output) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void displayExcel(String output) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void assertForEach(String comment, Object[] objects, String method, Object expectedResult)
public static void assertEqualForMethods(String title, Object expectedResult, Object testResult, String[] matchingMethods)
public static void displayEmail(javax.mail.Message email)
public static void displayFile(String fileName)
public static double getTimerMultiplier()
throws InterruptedException
InterruptedExceptionpublic static void assertLength(int length,
Object[] array)
public static void assertLength(int length,
List<?> list)
public static void displayImage(BufferedImage image) throws Exception
Exceptionpublic static StackTraceReflectionResult getCurrentFileForMethod(int ignoreLevels)
public static StackTraceReflectionResult getCurrentFileForMethod(StackElementSelector stackElementSelector)
public static StackTraceReflectionResult getCurrentFileForMethod(StackElementSelector stackElementSelector, StackTraceElement[] trace)
Copyright © 2018. All rights reserved.