Example usage for org.apache.commons.net.ftp FTPConnectionClosedException FTPConnectionClosedException

List of usage examples for org.apache.commons.net.ftp FTPConnectionClosedException FTPConnectionClosedException

Introduction

In this page you can find the example usage for org.apache.commons.net.ftp FTPConnectionClosedException FTPConnectionClosedException.

Prototype

public FTPConnectionClosedException() 

Source Link

Document

Constructs a FTPConnectionClosedException with no message

Usage

From source file:au.org.intersect.dms.wn.transports.impl.FtpConnectionTest.java

@Test(expected = ConnectionClosedError.class)
public void changeWorkingDirectoryConnectionClosed() throws IOException {
    when(client.changeWorkingDirectory(workingDirectory)).thenThrow(new FTPConnectionClosedException());
    when(client.isConnected()).thenReturn(true);
    connection.rename(workingDirectory, "", "");
}