Liferay 6.2-ce-ga5

com.liferay.portal.kernel.test
Class ConsoleTestUtil

java.lang.Object
  extended by com.liferay.portal.kernel.test.ConsoleTestUtil

public class ConsoleTestUtil
extends Object


Constructor Summary
ConsoleTestUtil()
           
 
Method Summary
static UnsyncByteArrayOutputStream hijackStdErr()
           
static UnsyncByteArrayOutputStream hijackStdOut()
           
static String restoreStdErr(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
           
static String restoreStdOut(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleTestUtil

public ConsoleTestUtil()
Method Detail

hijackStdErr

public static UnsyncByteArrayOutputStream hijackStdErr()

hijackStdOut

public static UnsyncByteArrayOutputStream hijackStdOut()

restoreStdErr

public static String restoreStdErr(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
                            throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

restoreStdOut

public static String restoreStdOut(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
                            throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

Liferay 6.2-ce-ga5