public class SSHCommandTester<R>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected R |
returnObj |
protected SSHTestContext |
testContext |
| Constructor and Description |
|---|
SSHCommandTester(java.lang.String command,
java.lang.Integer timeoutSec,
SSHTester<?> parent,
R returnObj,
SSHTestContext testContext,
org.pagemodel.core.testers.TestEvaluator testEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
R |
disconnect() |
SSHCommandTester<R> |
exitSudo() |
protected org.pagemodel.core.testers.TestEvaluator |
getEvaluator() |
SSHCommandTester<R> |
runCommand(java.lang.String command) |
SSHCommandTester<R> |
runCommand(java.lang.String command,
int timeoutSec) |
SSHCommandTester<R> |
sudoToRoot() |
SSHCommandTester<R> |
sudoToRoot(java.lang.String sudoOpts) |
org.pagemodel.core.testers.StringTester<SSHCommandTester<R>> |
testOutput() |
org.pagemodel.core.testers.ComparableTester<java.lang.Integer,SSHCommandTester<R>> |
testReturnCode() |
protected R returnObj
protected final SSHTestContext testContext
public SSHCommandTester(java.lang.String command,
java.lang.Integer timeoutSec,
SSHTester<?> parent,
R returnObj,
SSHTestContext testContext,
org.pagemodel.core.testers.TestEvaluator testEvaluator)
protected org.pagemodel.core.testers.TestEvaluator getEvaluator()
public org.pagemodel.core.testers.ComparableTester<java.lang.Integer,SSHCommandTester<R>> testReturnCode()
public org.pagemodel.core.testers.StringTester<SSHCommandTester<R>> testOutput()
public SSHCommandTester<R> runCommand(java.lang.String command, int timeoutSec)
public SSHCommandTester<R> runCommand(java.lang.String command)
public SSHCommandTester<R> sudoToRoot()
public SSHCommandTester<R> sudoToRoot(java.lang.String sudoOpts)
public SSHCommandTester<R> exitSudo()
public R disconnect()