[
http://jira.jboss.com/jira/browse/JBESB-469?page=comments#action_12356055 ]
Mark Little commented on JBESB-469:
-----------------------------------
Hi Daniel. Although there is not a single unit test for EdtFtpImpl, it is tested via other
unit tests. However, we can never have enough tests, so please go ahead and write one and
submit it back. We're getting to the end of a release cycle at the moment, so will
look at what you've just submited in the next week or so after the release.
ftp post-directory issue
------------------------
Key: JBESB-469
URL:
http://jira.jboss.com/jira/browse/JBESB-469
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.0
Reporter: Daniel Bevenius
Assigned To: Mark Little
Priority: Minor
Attachments: EdtFtpImpl.java
When configuring an ftp-message-filter and specifying a post-directory the file still
ends up in the directory specified in the directory attribute.
The method renameInRemoteDir(String p_sFrom, String p_sTo) in EdtFtpImpl has a line that
looks like this:
m_oConn.rename(getRemoteDir() + "/" + sRmtFrom, getRemoteDir() + "/"
+ sRmtTo);
The getRemoteDir() method always returns the value of m_sRemoteDir, and as far as I can
tell this is never changed after being set to the directory attribute in
ftp-message-filter.
I could not find any unit test for EdtFtpImpl in the svn trunk and was wondering if this
would be something I could write. We are currently using an embedded ftp server to test
the functionality of the ftp listener via the ESB. My though would be that I could write
junit tests for the EdtFtpImpl.java using an embedded ftp server. Let me know if this
would be of interest to you.
Thanks
Daniel
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira