예제 #1
0
 /**
  * Tests restoring session after disconnect.
  *
  * @throws Exception
  */
 @Test
 public void test07CanRestoreSessionAfterDisconnect() throws Exception {
   session.disconnect();
   session.restore();
   assertTrue(session.isConnected());
   assertTrue(session.printWorkingDirectory().contains("for_testing"));
 }
예제 #2
0
 /**
  * Tests connection functionality.
  *
  * @throws Exception unexpected
  */
 @Test
 public void test01CanConnect() throws Exception {
   session.connect(HOST, PORT);
   assertTrue(session.isConnected());
 }