|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.test.SshdServerMock.CommandMock
com.sonyericsson.hudson.plugins.gerrit.trigger.test.SshdServerMock.PrintLinesCommand
public static class SshdServerMock.PrintLinesCommand
A Command that prints a given list of lines when the now() method is called and then exits with 0. This
command is not working as expected yet.
| Field Summary |
|---|
| Fields inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.test.SshdServerMock.CommandMock |
|---|
command, WAIT_FOR_DESTROYED |
| Constructor Summary | |
|---|---|
SshdServerMock.PrintLinesCommand(java.lang.String command,
java.util.List<java.lang.String> lines)
Standard constructor. |
|
| Method Summary | |
|---|---|
void |
now()
call this to make the command print its lines to the output. |
void |
start(org.apache.sshd.server.Environment environment)
Default implementation just waits for the command to be destroyed. |
| Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.test.SshdServerMock.CommandMock |
|---|
destroy, getCommand, getErrorStream, getInputStream, getOutputStream, isDestroyed, setErrorStream, setExitCallback, setInputStream, setOutputStream, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SshdServerMock.PrintLinesCommand(java.lang.String command,
java.util.List<java.lang.String> lines)
command - the commandlines - the lines to print.| Method Detail |
|---|
public void now()
public void start(org.apache.sshd.server.Environment environment)
throws java.io.IOException
SshdServerMock.CommandMock
start in interface org.apache.sshd.server.Commandstart in class SshdServerMock.CommandMockenvironment - env.
java.io.IOException - if so.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||