public class

FTPServerModule

extends Object
java.lang.Object
   ↳ org.mule.munit.FTPServerModule
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

FTP server for Integration tests.

With this module you can start a FTP server on your local machine

Summary

Fields
private int port

FTP server port.

private boolean secure

Defines if is FTP over ssh.

private FTPServer server
Public Constructors
FTPServerModule()
Public Methods
void containsFiles(String file, String path)

check if a file exists.

void initialise()
void remove(String path)

Remove created files

void setPort(int port)
void setSecure(boolean secure)
void startServer()

Starts the server

void stopServer()

Stops the server

[Expand]
Inherited Methods
From class java.lang.Object

Fields

private int port

FTP server port.

private boolean secure

Defines if is FTP over ssh.

private FTPServer server

Public Constructors

public FTPServerModule ()

Public Methods

public void containsFiles (String file, String path)

check if a file exists.

Parameters
file File
path Path

public void initialise ()

Throws
InitialisationException

public void remove (String path)

Remove created files

Parameters
path Path to be removed.

public void setPort (int port)

Parameters
port

public void setSecure (boolean secure)

Parameters
secure

public void startServer ()

Starts the server

public void stopServer ()

Stops the server