com.liferay.portal.kernel.test
Class ConsoleTestUtil
java.lang.Object
com.liferay.portal.kernel.test.ConsoleTestUtil
public class ConsoleTestUtil
- extends Object
|
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 |
ConsoleTestUtil
public ConsoleTestUtil()
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