Class ConsoleTestUtil

Object
com.liferay.portal.kernel.test.ConsoleTestUtil

public class ConsoleTestUtil extends Object
Author:
Shuyang Zhou
  • 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