com.liferay.portal.kernel.test
Class ConsoleTestUtil

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

public class ConsoleTestUtil
extends java.lang.Object

Author:
Shuyang Zhou

Constructor Summary
ConsoleTestUtil()
           
 
Method Summary
static UnsyncByteArrayOutputStream hijackStdErr()
           
static UnsyncByteArrayOutputStream hijackStdOut()
           
static java.lang.String restoreStdErr(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
           
static java.lang.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 java.lang.String restoreStdErr(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
                                      throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

restoreStdOut

public static java.lang.String restoreStdOut(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
                                      throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException