Class SshServerMock

java.lang.Object
com.chutneytesting.action.ssh.sshd.SshServerMock

public class SshServerMock extends Object
  • Constructor Details

    • SshServerMock

      public SshServerMock(org.apache.sshd.server.SshServer sshServer, List<String> stubs)
  • Method Details

    • addCommand

      public Optional<String> addCommand(String command)
    • commands

      public List<String> commands()
    • stubs

      public List<String> stubs()
    • 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()