public class FtpRule
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
FtpRule() |
FtpRule(String user,
String password,
String baseDir,
int port) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after()
Override to tear down your specific external resource.
|
protected void |
before()
Override to set up your specific external resource.
|
String |
getBaseDir() |
org.mockftpserver.fake.filesystem.FileSystemEntry |
getFile(String fileName) |
int |
getPort() |
void |
putFile(String fileName,
String content) |
void |
start()
Start the fakeFtpServer.
|
void |
stop()
Stop the fakeFtpServer.
|
public org.mockftpserver.fake.filesystem.FileSystemEntry getFile(String fileName) throws Exception
Exceptionpublic int getPort()
public String getBaseDir()
public void start()
public void stop()
protected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowable - if setup fails (which will disable afterprotected void after()
after in class org.junit.rules.ExternalResourceCopyright © 2007-2020 Ikasan. All Rights Reserved.