Fix FTP Tests
Incorrect directory and the test didn't verify that files were retrieved.
This commit is contained in:
@@ -188,6 +188,8 @@ public class SftpServerOutboundTests {
|
||||
assertNotNull(result);
|
||||
List<File> localFiles = (List<File>) result.getPayload();
|
||||
|
||||
assertThat(localFiles.size(), Matchers.greaterThan(0));
|
||||
|
||||
for (File file : localFiles) {
|
||||
assertThat(file.getPath().replaceAll(java.util.regex.Matcher.quoteReplacement(File.separator), "/"),
|
||||
Matchers.containsString(dir));
|
||||
@@ -199,6 +201,8 @@ public class SftpServerOutboundTests {
|
||||
assertNotNull(result);
|
||||
localFiles = (List<File>) result.getPayload();
|
||||
|
||||
assertThat(localFiles.size(), Matchers.greaterThan(0));
|
||||
|
||||
for (File file : localFiles) {
|
||||
assertThat(file.getPath().replaceAll(java.util.regex.Matcher.quoteReplacement(File.separator), "/"),
|
||||
Matchers.containsString(dir));
|
||||
|
||||
Reference in New Issue
Block a user