com.atlassian.jira.functest.framework.log
Class FuncTestOut

java.lang.Object
  extended by com.atlassian.jira.functest.framework.log.FuncTestOut

public class FuncTestOut
extends Object

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();

Since:
v4.0

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

out

public static final PrintStream out
This PrintStream is tee'ed to write to System.out and to a Maven aware output filec called JiraFuncTests.out.log


err

public static final PrintStream err
This PrintStream is tee'ed to write to System.err and to a Maven aware output filec called JiraFuncTests.out.log

Constructor Detail

FuncTestOut

public FuncTestOut()
Method Detail

log

public static void log(Object logData)
This will log to a StringBuffer first if need be and replace the new lines with "indent + newline"

Parameters:
logData - the data to log

log

public 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"

Parameters:
indentLevel - the indented level required
logData - the data to log


Copyright © 2002-2012 Atlassian. All Rights Reserved.