Package alluxio.cli
Class RunTestUtils
- java.lang.Object
-
- alluxio.cli.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.
-
-
-
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 resultoutStream
- 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
-
-