| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final char | |
| private static final Map | |
| private static final String | |
| private static final String | |
| private static final Logger | |
| private static int | |
| private static final char[] | |
| public static final char |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: - A String representation of the corresponding annotation.- An method)ITestNGMethod object.Given a TestNG method, returns the corresponding annotation based on the method type |
| public static String | |
| private static String | |
| public static void | |
| public static void | |
| public static String | |
| public static String | |
| public static String | |
| public static void | |
| public static String | |
| public static String | |
| pack-priv static String | |
| public static int | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| private static boolean | |
| public static <T> String | |
| public static void | |
| public static void | |
| public static String | Returns: - A string that represents the short stack trace.- The t, boolean Throwable exception- toHtml)true if the stacktrace should be translated to html as wellHelper that returns a short stack trace. |
| public static BufferedWriter | openWriter(String
output directory. If outputDir, String null, then current directory is usedfile name fileNameParameter)Open a BufferedWriter for the specified file. |
| private static BufferedWriter | |
| public static String | Returns: fileName with special characters replacedfile name that could contain special characters. fileNameParameter)If the file name contains special characters like *,/,\ and so on, exception will be thrown and report file will not be created. |
| public static void | |
| public static String | Returns: - A string that represents the full stack trace.- The t, boolean Throwable exception- toHtml)true if the stacktrace should be translated to html as wellHelper that returns a long stack trace. |
| public static String[] | |
| public static String | |
| public static String | |
| private static String | |
| public static String | |
| public static void | |
| public static void | |
| private static void | |
| private static void | |
| public static void | |
| public static void | |
| public static void | writeUtf8File(String
the output directory (may not exist). If outputDir, String null then current
directory is used.the filename fileName, String the file content sb)Writes the content of the sb string to the file named filename in outDir encoding the output as UTF-8. |
| CHAR_REPLACEMENT | back to summary |
|---|---|
| public static final char CHAR_REPLACEMENT | |
| ESCAPES | back to summary |
|---|---|
| private static final Map<Character, String> ESCAPES | |
| FORMAT | back to summary |
|---|---|
| private static final String FORMAT | |
| LINE_SEP | back to summary |
|---|---|
| private static final String LINE_SEP | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| m_verbose | back to summary |
|---|---|
| private static int m_verbose | |
| SPECIAL_CHARACTERS | back to summary |
|---|---|
| private static final char[] SPECIAL_CHARACTERS | |
| UNICODE_REPLACEMENT | back to summary |
|---|---|
| public static final char UNICODE_REPLACEMENT | |
| Utils | back to summary |
|---|---|
| private Utils() Hide constructor for utility class. | |
| annotationFormFor | back to summary |
|---|---|
| public static String annotationFormFor(ITestNGMethod method) Given a TestNG method, returns the corresponding annotation based on the method type
| |
| arrayToString | back to summary |
|---|---|
| public static String arrayToString(String[] strings) | |
| buildStackTrace | back to summary |
|---|---|
| private static String buildStackTrace(Throwable t, boolean toHtml, Utils. | |
| checkInstanceOrStatic | back to summary |
|---|---|
| public static void checkInstanceOrStatic(Object instance, Method method) | |
| checkReturnType | back to summary |
|---|---|
| public static void checkReturnType(Method method, Class<?>... returnTypes) | |
| defaultIfStringEmpty | back to summary |
|---|---|
| public static String defaultIfStringEmpty(String s, String defaultValue) | |
| detailedMethodName | back to summary |
|---|---|
| public static String detailedMethodName(ITestNGMethod method, boolean fqn) | |
| detailedMethodName | back to summary |
|---|---|
| public static String detailedMethodName(ITestNGMethod method) | |
| error | back to summary |
|---|---|
| public static void error(String errorMessage) | |
| escapeHtml | back to summary |
|---|---|
| public static String escapeHtml(String s) | |
| escapeUnicode | back to summary |
|---|---|
| public static String escapeUnicode(String s) | |
| filterTrace | back to summary |
|---|---|
| pack-priv static String filterTrace(String trace) | |
| getVerbose | back to summary |
|---|---|
| public static int getVerbose() | |
| isStringBlank | back to summary |
|---|---|
| public static boolean isStringBlank(String s) | |
| isStringEmpty | back to summary |
|---|---|
| public static boolean isStringEmpty(String s) | |
| isStringNotBlank | back to summary |
|---|---|
| public static boolean isStringNotBlank(String s) | |
| isStringNotEmpty | back to summary |
|---|---|
| public static boolean isStringNotEmpty(String s) | |
| isTooVerbose | back to summary |
|---|---|
| private static boolean isTooVerbose() | |
| join | back to summary |
|---|---|
| public static <T> String join(List<T> objects, String separator) | |
| log | back to summary |
|---|---|
| public static void log(String msg) | |
| log | back to summary |
|---|---|
| public static void log(String cls, int level, String msg) Logs the the message to System.out if level is greater than or equal to getVerbose(). The message is logged as:
"[cls] msg"
| |
| longStackTrace | back to summary |
|---|---|
| public static String longStackTrace(Throwable t, boolean toHtml) Helper that returns a short stack trace. | |
| openWriter | back to summary |
|---|---|
| public static BufferedWriter openWriter(String outputDir, String fileNameParameter) throws IOException Open a BufferedWriter for the specified file. If output directory doesn't exist, it is created. If the output file exists, it is deleted. The output file is created in any case.
| |
| openWriter | back to summary |
|---|---|
| private static BufferedWriter openWriter(File outputFile, String encoding) throws IOException | |
| replaceSpecialCharacters | back to summary |
|---|---|
| public static String replaceSpecialCharacters(String fileNameParameter) If the file name contains special characters like *,/,\ and so on, exception will be thrown and
report file will not be created. | |
| setVerbose | back to summary |
|---|---|
| public static void setVerbose(int n) | |
| shortStackTrace | back to summary |
|---|---|
| public static String shortStackTrace(Throwable t, boolean toHtml) Helper that returns a long stack trace. | |
| split | back to summary |
|---|---|
| public static String[] split(String string, String sep) | |
| stringifyTypes | back to summary |
|---|---|
| public static String stringifyTypes(Class<?>[] parameterTypes) | |
| toString | back to summary |
|---|---|
| public static String toString(Object object, Class<?> objectClass) | |
| toString | back to summary |
|---|---|
| private static String toString(Class<?>[] classes) | |
| toString | back to summary |
|---|---|
| public static String toString(Object obj) Returns the string representation of the specified object, transparently handling null references and arrays. | |
| warn | back to summary |
|---|---|
| public static void warn(String warnMsg) | |
| writeFile | back to summary |
|---|---|
| public static void writeFile(String outputDir, String fileName, String sb) Writes the content of the sb string to the file named filename in outDir. If outDir does not exist, it is created. | |
| writeFile | back to summary |
|---|---|
| private static void writeFile(File outputFolder, String fileNameParameter, String sb, String encoding) Writes the content of the sb string to the file named filename in outDir. If outDir does not exist, it is created. | |
| writeFile | back to summary |
|---|---|
| private static void writeFile(File outputFile, String sb, String encoding) | |
| writeResourceToFile | back to summary |
|---|---|
| public static void writeResourceToFile(File file, String resourceName, Class<?> clasz) throws IOException | |
| writeUtf8File | back to summary |
|---|---|
| public static void writeUtf8File(String outputDir, String fileName, XMLStringBuffer xsb, String prefix) | |
| writeUtf8File | back to summary |
|---|---|
| public static void writeUtf8File(String outputDir, String fileName, String sb) Writes the content of the sb string to the file named filename in outDir encoding the output as UTF-8. If outDir does not exist, it is created. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Utils. | |
| public static final Utils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Utils. | |
| public static Utils. |
| FULL | back to summary |
|---|---|
| public static final Utils. | |
| SHORT | back to summary |
|---|---|
| public static final Utils. | |
| StackTraceType | back to summary |
|---|---|
| private StackTraceType() | |
| valueOf | back to summary |
|---|---|
| public static Utils. | |
| values | back to summary |
|---|---|
| public static Utils. | |