NIFI-13751 Upgraded SSHJ from 0.38.0 to 0.39.0 (#9266)

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Lucas 2024-09-14 21:59:29 +02:00 committed by GitHub
parent 6e308f2cf1
commit 00c7a78119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ import org.apache.nifi.processor.util.file.transfer.FileTransfer;
import org.apache.nifi.util.MockFlowFile;
import org.apache.nifi.util.MockPropertyValue;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentMatchers;
import java.io.File;
import java.io.IOException;
@ -262,7 +263,7 @@ public class TestSFTPTransfer {
when(processContext.getProperty(eq(FileTransfer.REMOTE_PATH))).thenReturn(new MockPropertyValue("."));
try (SFTPClient sftpClient = mock(SFTPClient.class)) {
when(sftpClient.ls(any(), any())).then(invocation -> {
when(sftpClient.ls(any(), ArgumentMatchers.<RemoteResourceFilter>any())).then(invocation -> {
final Map<String, String> extended = new LinkedHashMap<>();
final List<RemoteResourceInfo> list = new ArrayList<>();
list.add(new RemoteResourceInfo(

View File

@ -67,7 +67,7 @@
<dependency>
<groupId>com.hierynomus</groupId>
<artifactId>sshj</artifactId>
<version>0.38.0</version>
<version>0.39.0</version>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>