com.liferay.portal.kernel.test
Class ConsoleTestUtil
java.lang.Object
com.liferay.portal.kernel.test.ConsoleTestUtil
public class ConsoleTestUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleTestUtil
public ConsoleTestUtil()
hijackStdErr
public static UnsyncByteArrayOutputStream hijackStdErr()
hijackStdOut
public static UnsyncByteArrayOutputStream hijackStdOut()
restoreStdErr
public static String restoreStdErr(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
restoreStdOut
public static String restoreStdOut(UnsyncByteArrayOutputStream unsyncByteArrayOutputStream)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException