Class SshServerMock
- java.lang.Object
-
- com.chutneytesting.action.ssh.sshd.SshServerMock
-
public class SshServerMock extends Object
-
-
Constructor Summary
Constructors Constructor Description SshServerMock(org.apache.sshd.server.SshServer sshServer, List<String> stubs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>addCommand(String command)booleanallStubsUsed()Stringcommand(int i)List<String>commands()Stringhost()booleanisClosed()booleanisOpen()booleanisStarted()intport()voidstart()voidstop()List<String>stubs()
-
-
-
Method Detail
-
command
public String command(int i)
-
allStubsUsed
public boolean allStubsUsed()
-
start
public void start() throws IOException- Throws:
IOException
-
stop
public void stop() throws IOException- Throws:
IOException
-
host
public String host()
-
port
public int port()
-
isStarted
public boolean isStarted()
-
isClosed
public boolean isClosed()
-
isOpen
public boolean isOpen()
-
-