@Exported
public interface ShellTest
| 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 input,
int quantity,
TimeUnit unit)
Clear and wait for the next write to STDOUT.
|
void |
waitForStdOut(String input,
int quantity,
TimeUnit unit)
Clear and wait for the next write to STDOUT.
|
org.jboss.forge.addon.ui.result.Result execute(String line)
Result. Clears STDOUT and STDERR before execution.org.jboss.forge.addon.ui.result.Result execute(String line, int quantity, TimeUnit unit)
Result. Fail if not complete within the given quantity of
TimeUnit. Clears STDOUT and STDERR before execution.void waitForStdOut(String input, int quantity, TimeUnit unit) throws TimeoutException
TimeUnitTimeoutExceptionvoid waitForStdErr(String input, int quantity, TimeUnit unit) throws TimeoutException
TimeUnitTimeoutExceptionOutputStream getStdIn()
OutputStream for writing.String getStdOut()
String getStdErr()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.