Beta Edition: Using the server
From CFTP
Example tests
Go to http://cftp.coldcore.com/downloads-pc.html page and download the betatest source, the download link should be within the description of the Beta Edition server. This is an example of how to start/use/stop an in-memory server. The JUnit tests reuse configuration and libraries supplied with an FTP server. Just set the correct path in the build.properties to your Beta Edition home folder and run the tests with Apache's ANT.
Writing your own tests
Put server configuration file and libraries into a classpath. Extend the base class used by the example tests or copy/paste relevant code parts into your tests. Note that the Beta Edition is using COTTA, so minimum knowledge of the project is required.
Changing server configuration
The easiest option is to replace configuration supplied with a server.
However, to write proper tests you have to put all your configuration files into a classpath and then create the server core out of your own bean factory as done in the example base class. As long as all the additional files referenced from your main beans.xml file are in the classpath, the server will have no problem finding them.
The testpack available at http://cftp.coldcore.com/downloads-tl.html uses this approach to apply many different configurations. Read more...
Return to FTP Server: Beta Edition