public static class ScriptUtils.RunResult extends Object
| Constructor and Description |
|---|
RunResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyze()
Split the class path into strings for easier validation.
|
boolean |
classPathContains(String expectedCP) |
boolean |
classPathContains(String[] expectedCP) |
boolean |
containsArg(String arg) |
boolean |
containsArgRegex(String arg) |
boolean |
containsArgsRegex(List<String> args) |
boolean |
containsArgsRegex(String[] args) |
int |
getPid() |
void |
loadLog()
Read the log file, if any, generated by the process.
|
void |
loadOut() |
void |
validateArg(String arg) |
void |
validateArgRegex(String arg) |
void |
validateArgs(List<String> args) |
void |
validateArgs(String[] args) |
void |
validateArgsRegex(List<String> args) |
void |
validateClassPath(String expectedCP) |
void |
validateClassPath(String[] expectedCP) |
void |
validateDrillLog()
Ensure that the Drill log file contains at least the sample message
written by the wrapper.
|
void |
validateJava()
Validate that the first argument invokes Java correctly.
|
void |
validateStdErr()
Validate that the stderr contained the sample error message from the
wrapper.
|
void |
validateStdOut()
Validate that the stdout contained the expected message.
|
void |
validateStockArgs() |
public void analyze()
public void loadLog()
throws IOException
IOExceptionpublic void validateJava()
public boolean containsArg(String arg)
public void validateStockArgs()
public void validateArg(String arg)
public void validateArgs(String[] args)
public void validateArgRegex(String arg)
public boolean containsArgsRegex(String[] args)
public boolean containsArgRegex(String arg)
public void validateClassPath(String expectedCP)
public void validateClassPath(String[] expectedCP)
public boolean classPathContains(String[] expectedCP)
public boolean classPathContains(String expectedCP)
public void loadOut()
throws IOException
IOExceptionpublic void validateDrillLog()
public void validateStdOut()
public void validateStdErr()
public int getPid()
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.