added another sshj test

This commit is contained in:
Adrian Cole 2011-10-31 09:31:26 +00:00
parent 45bf2b4248
commit 06f418c8ba
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ public class SshjSshClientTest {
}
public void testExceptionClassesRetry() {
assert ssh.shouldRetry(new ConnectionException("Read timed out", new SSHException("Read timed out",
new SocketTimeoutException("Read timed out"))));
assert ssh.shouldRetry(new SocketTimeoutException("connect timed out"));
assert ssh.shouldRetry(new TransportException("socket closed"));
assert ssh.shouldRetry(new ConnectionException("problem"));