/** * Verifies that coping file from remote machine to local machine works as expected. Depends on * {@link #testCopyFileFromServerToRemoteClient()} */ public void testCopyFileFromRemoteClientToServer() throws Exception { File f = new File(ftpServer.getDefaultUserHomeDirectory(), "FTPRemoteClientTest3.class"); f.delete(); assertTrue(!f.exists()); ftpRemoteClient.copyFileFromRemoteClientToLocalMachine( ".\\FTPRemoteClientTest2.class", "FTPRemoteClientTest3.class"); assertTrue(f.exists()); assertTrue(f.delete()); ftpRemoteClient.closeFTPSession(); }