Class GridTestPrintStreamFactory


  • public final class GridTestPrintStreamFactory
    extends Object
    Factory that allow to acquire/release Print Stream for test logging.
    • Method Detail

      • getStdOut

        public static PrintStream getStdOut()
        Gets original standard out.
        Returns:
        Original standard out.
      • getStdErr

        public static PrintStream getStdErr()
        Gets original standard error.
        Returns:
        Original standard error.
      • acquireOut

        public static GridTestPrintStream acquireOut()
        Acquires output stream for logging tests.
        Returns:
        Junit out print stream.
      • acquireErr

        public static GridTestPrintStream acquireErr()
        Acquires output stream for logging errors in tests.
        Returns:
        Junit error print stream.
      • releaseOut

        public static void releaseOut()
        Releases standard out. If there are no more acquired standard outs, then it is reset to its original value.
      • releaseErr

        public static void releaseErr()
        Releases standard error. If there are no more acquired standard errors, then it is reset to its original value.