public class ConsoleTestUtil
extends Object
| Constructor and Description |
|---|
ConsoleTestUtil() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream hijackStdErr()
public static com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream hijackStdOut()
public static String restoreStdErr(com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String restoreStdOut(com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
throws UnsupportedEncodingException
UnsupportedEncodingException