|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.log.FuncTestOut
public class FuncTestOut
We need to write output to a PrintStream that we know goes to file. Maven 1, in its infinite wisdom, holds test output including System.out calls in memory. If all hell breaks loose, the extra generated output (such as exceptions and so on) will be kept in memory and LOST if the process runs out of memory.
We need to put it in a file in this case AS we go so its available for debugging reasons. So dont write System.out.println() but rather FuncTestOut.out.println();
Field Summary | |
---|---|
static PrintStream |
err
This PrintStream is tee'ed to write to System.err and to a Maven aware output filec
called JiraFuncTests.out.log |
static PrintStream |
out
This PrintStream is tee'ed to write to System.out and to a Maven aware output filec
called JiraFuncTests.out.log |
Constructor Summary | |
---|---|
FuncTestOut()
|
Method Summary | |
---|---|
static void |
log(int indentLevel,
Object logData)
This will log to a StringBuffer first if need be and replace the new lines with "indent + newline" |
static void |
log(Object logData)
This will log to a StringBuffer first if need be and replace the new lines with "indent + newline" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PrintStream out
PrintStream
is tee'ed to write to System.out
and to a Maven aware output filec
called JiraFuncTests.out.log
public static final PrintStream err
PrintStream
is tee'ed to write to System.err
and to a Maven aware output filec
called JiraFuncTests.out.log
Constructor Detail |
---|
public FuncTestOut()
Method Detail |
---|
public static void log(Object logData)
logData
- the data to logpublic static void log(int indentLevel, Object logData)
indentLevel
- the indented level requiredlogData
- the data to log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |