/** * 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")); }
/** * Tests connection functionality. * * @throws Exception unexpected */ @Test public void test01CanConnect() throws Exception { session.connect(HOST, PORT); assertTrue(session.isConnected()); }