|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.unitedinternet.portal.selenium.utils.logging.StackTraceUtils
public final class StackTraceUtils
Utility Methods to support searching in StackStraces related to Selenium and the logging extension.
Field Summary | |
---|---|
static java.lang.String |
LINE_NUMBER_SEPARATOR
for the string representation of calling code. |
Method Summary | |
---|---|
static void |
debugStackTrace()
Debugs on stderr the current stack-trace. |
static java.lang.StackTraceElement |
getCurrentCallingClassAsStackTraceElement(java.lang.StackTraceElement[] testElements,
java.lang.String preceedingClassName)
Search through the current StackTrace looking for the first element after preceedingClassName. |
static boolean |
isClassInStackTrace(java.lang.StackTraceElement[] testElements,
java.lang.String className)
Is named class in StackTrace Array? |
static boolean |
isClassName(java.lang.StackTraceElement stackTraceElement,
java.lang.String wantedClassName)
Compare Helper. |
static java.lang.String |
stackTraceElementWithLinenumberAsString(java.lang.StackTraceElement stackTraceElement)
Generates a string representation of the current class with linenumber. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LINE_NUMBER_SEPARATOR
Method Detail |
---|
public static void debugStackTrace()
public static java.lang.String stackTraceElementWithLinenumberAsString(java.lang.StackTraceElement stackTraceElement)
stackTraceElement
- to get class name and linenumber
public static boolean isClassName(java.lang.StackTraceElement stackTraceElement, java.lang.String wantedClassName)
stackTraceElement
- search className herewantedClassName
- search for this name
public static java.lang.StackTraceElement getCurrentCallingClassAsStackTraceElement(java.lang.StackTraceElement[] testElements, java.lang.String preceedingClassName)
testElements
- StackTrace Array to be searched inpreceedingClassName
- ClassName to be just before wanted element in the trace
public static boolean isClassInStackTrace(java.lang.StackTraceElement[] testElements, java.lang.String className)
testElements
- StackTrace Array to be searched inclassName
- ClassName to be searcher for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |