Liferay 7.0-ce-b7 portal-test

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 com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream hijackStdErr()
           
static com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream hijackStdOut()
           
static String restoreStdErr(com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
           
static String restoreStdOut(com.liferay.portal.kernel.io.unsync.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 com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream hijackStdErr()

hijackStdOut

public static com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream hijackStdOut()

restoreStdErr

public static String restoreStdErr(com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
                            throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

restoreStdOut

public static String restoreStdOut(com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
                            throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

Liferay 7.0-ce-b7 portal-test