Exemplo n.º 1
0
 @Test(expected = AuthenticationException.class)
 public void testWrongPassword() throws Exception {
   _sshdialog.setKeyPair(null);
   _sshdialog.setPassword("bad");
   _sshdialog.connect();
   _sshdialog.authenticate();
 }
Exemplo n.º 2
0
 @Before
 public void setUp() {
   _sshdialog = new SSHDialog();
   _sshdialog.setHost(s_host, s_port);
   _sshdialog.setPassword(s_password);
   _sshdialog.setKeyPair(s_keyPair);
   _sshdialog.setSoftTimeout(10 * 1000);
   _sshdialog.setHardTimeout(30 * 1000);
 }