@Override protected void tearDown() throws Exception { if (areTestsEnabled()) { FileTransferClient client = connectRawClient(); cleanup(client, getRemoteDirectory()); client.rmdir(getRemoteDirectory()); client.disconnect(); } }
@Override protected void setUp() throws Exception { if (areTestsEnabled()) { FileTransferClient client = connectRawClient(); try { client.mkdir(getRemoteDirectory()); } catch (Exception e) { } finally { client.disconnect(); } } }