Reputation: 21
I have a java app that reads files kept on a remote server using ftp protocol, I used the org.apache.commons.net.ftp.FTPClient
to write my ftp client side code, but I dont know how to test it.
Upvotes: 1
Views: 1704
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
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