Anshul Mishra
Anshul Mishra

Reputation: 21

Testing a ftp client program in Java

I have a java app that reads files kept on a remote server using ftp protocol, I used the org.apache.commons.net.ftp.FTPClientto write my ftp client side code, but I dont know how to test it.

Upvotes: 1

Views: 1704

Answers (2)

Chris Mair
Chris Mair

Reputation: 66

I know this answer is a bit late, but if you want to test FTP client code, then take a look at MockFtpServer (http://mockftpserver.org).

Upvotes: 3

Rahul Yadav
Rahul Yadav

Reputation: 1513

You can test by putting logs after connect, login, listing files etc, and in catch block you print the stack trace until all your connections issues are resolved.

Upvotes: 0

Related Questions