SshHelper { protected static void throwSshExceptionIfConditionsTimeout(int conditions) throws SshException { if ((conditions & ChannelCondition.TIMEOUT) != 0) { String msg = "Timed out in waiting for SSH execution exit status"; s_logger.error(msg); throw new SshException(msg); } }  static Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
            String fileMode); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode,
            int connectTimeoutInMs, int kexTimeoutInMs); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
            String fileMode, int connectTimeoutInMs, int kexTimeoutInMs); static Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command, int connectTimeoutInMs,
            int kexTimeoutInMs,
            int waitResultTimeoutInMs);  }
@Test(expected = SshException.class) public void throwSshExceptionIfConditionsTimeout() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.TIMEOUT); }
@Test public void doNotThrowSshExceptionIfConditionsClosed() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.CLOSED); }
@Test public void doNotThrowSshExceptionIfConditionsStdout() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.STDOUT_DATA); }
@Test public void doNotThrowSshExceptionIfConditionsStderr() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.STDERR_DATA); }
@Test public void doNotThrowSshExceptionIfConditionsEof() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.EOF); }
@Test public void doNotThrowSshExceptionIfConditionsExitStatus() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.EXIT_STATUS); }
@Test public void doNotThrowSshExceptionIfConditionsExitSignal() throws SshException { SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.EXIT_SIGNAL); }