@Singleton public class ShellTestImpl extends Object implements ShellTest
| Constructor and Description |
|---|
ShellTestImpl(org.jboss.forge.addon.shell.test.TestAeshSettingsProvider provider,
TestCommandListener listener) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.forge.addon.ui.result.Result |
execute(String line)
Execute the given line and return the
Result. |
org.jboss.forge.addon.ui.result.Result |
execute(String line,
int quantity,
TimeUnit unit)
Execute the given line and return the
Result. |
String |
getStdErr()
Get the current contents of STDERR since the last time it was cleared.
|
OutputStream |
getStdIn()
Get the STDIN
OutputStream for writing. |
String |
getStdOut()
Get the current contents of STDOUT since the last time it was cleared.
|
void |
waitForStdErr(String value,
int quantity,
TimeUnit unit)
Clear and wait for the next write to STDOUT.
|
void |
waitForStdOut(String value,
int quantity,
TimeUnit unit)
Clear and wait for the next write to STDOUT.
|
@Inject
public ShellTestImpl(org.jboss.forge.addon.shell.test.TestAeshSettingsProvider provider,
TestCommandListener listener)
public org.jboss.forge.addon.ui.result.Result execute(String line)
ShellTestResult. Clears STDOUT and STDERR before execution.public org.jboss.forge.addon.ui.result.Result execute(String line, int quantity, TimeUnit unit)
ShellTestResult. Fail if not complete within the given quantity of
TimeUnit. Clears STDOUT and STDERR before execution.public void waitForStdOut(String value, int quantity, TimeUnit unit) throws TimeoutException
ShellTestTimeUnitwaitForStdOut in interface ShellTestTimeoutExceptionpublic void waitForStdErr(String value, int quantity, TimeUnit unit) throws TimeoutException
ShellTestTimeUnitwaitForStdErr in interface ShellTestTimeoutExceptionpublic OutputStream getStdIn()
ShellTestOutputStream for writing.public String getStdOut()
ShellTestCopyright © 2013 JBoss by Red Hat. All Rights Reserved.