|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugins.junitreport.ExceptionTool
public class ExceptionTool
Util class for exceptions
Inspired from org.apache.maven.util.StringTool
Constructor Summary | |
---|---|
ExceptionTool()
|
Method Summary | |
---|---|
String[] |
split(String text,
String separator)
Splits the provided text into an array, separator String specified. |
String[] |
splitNestedStackTraces(String nestedStackTrace)
Splits the given stacktrace into an array of simple (not
nested) stack traces. |
String |
truncateNestedStackTrace(String netstedStackTrace,
String searchedString)
Splits the given stackTrace into nested stack traces and
truncates each of the nested stacktrace (including the nesting
stacktrace) then re-concatenates the string to return it
|
String |
truncateStackTrace(String stackTrace,
String searchedString)
Truncates the given stacktrace just before the first occurance of the given searchedString
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionTool()
Method Detail |
---|
public String[] split(String text, String separator)
Splits the provided text into an array, separator String specified.
This method is different of StringTokenizer
that only
accept chars as separator but not strings
text
- the string to splitseparator
- the spearator
public String[] splitNestedStackTraces(String nestedStackTrace)
Splits the given stacktrace
into an array of simple (not
nested) stack traces. The nesting stack trace is included in the result
nestedStackTrace
- the nested stack trace to split
public String truncateStackTrace(String stackTrace, String searchedString)
Truncates the given stacktrace just before the first occurance of the
given searchedString
stackTrace
- the stacktrace to truncatesearchedString
- e.g. "at org.apache.commons.jelly.tags.ant.AntTag.doTag"
public String truncateNestedStackTrace(String netstedStackTrace, String searchedString)
Splits the given stackTrace
into nested stack traces and
truncates each of the nested stacktrace (including the nesting
stacktrace) then re-concatenates the string to return it
netstedStackTrace
- the nested stacktrace to truncatesearchedString
- e.g. "at org.apache.commons.jelly.tags.ant.AntTag.doTag"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |