mirror of https://github.com/apache/jclouds.git
added another sshj test
This commit is contained in:
parent
45bf2b4248
commit
06f418c8ba
|
@ -87,6 +87,8 @@ public class SshjSshClientTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testExceptionClassesRetry() {
|
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 SocketTimeoutException("connect timed out"));
|
||||||
assert ssh.shouldRetry(new TransportException("socket closed"));
|
assert ssh.shouldRetry(new TransportException("socket closed"));
|
||||||
assert ssh.shouldRetry(new ConnectionException("problem"));
|
assert ssh.shouldRetry(new ConnectionException("problem"));
|
||||||
|
|
Loading…
Reference in New Issue