Package com.liferay.portal.kernel.test
Class ConsoleTestUtil
Object
com.liferay.portal.kernel.test.ConsoleTestUtil
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.petra.io.unsync.UnsyncByteArrayOutputStreamstatic com.liferay.petra.io.unsync.UnsyncByteArrayOutputStreamstatic StringrestoreStdErr(com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream) static StringrestoreStdOut(com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
-
Constructor Details
-
ConsoleTestUtil
public ConsoleTestUtil()
-
-
Method Details
-
hijackStdErr
public static com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream hijackStdErr() -
hijackStdOut
public static com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream hijackStdOut() -
restoreStdErr
public static String restoreStdErr(com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
restoreStdOut
public static String restoreStdOut(com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-