Package alluxio.cli

Class RunTestUtils


  • public final class RunTestUtils
    extends java.lang.Object
    Utilities to run the examples.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void printTestStatus​(boolean pass)
      Prints information of the test result.
      static void printTestStatus​(boolean pass, java.io.PrintStream outStream)
      Prints information of the test result to redirected streams.
      static boolean runExample​(java.util.concurrent.Callable<java.lang.Boolean> example)
      Runs an example.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • printTestStatus

        public static void printTestStatus​(boolean pass,
                                           java.io.PrintStream outStream)
        Prints information of the test result to redirected streams.
        Parameters:
        pass - the test result
        outStream - stream for stdout
      • printTestStatus

        public static void printTestStatus​(boolean pass)
        Prints information of the test result.
        Parameters:
        pass - the test result
      • runExample

        public static boolean runExample​(java.util.concurrent.Callable<java.lang.Boolean> example)
        Runs an example.
        Parameters:
        example - the example to run
        Returns:
        whether the example completes