You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes: #9272
* close ClientSession when closing SftpSession
* fix whitespace issues
* stop the SshClient on bean destruction
* use convenient assertions
(cherry picked from commit a3fb68a)
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java
+11-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2023 the original author or authors.
2
+
* Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/test/java/org/springframework/integration/sftp/inbound/SftpInboundRemoteFileSystemSynchronizerTests.java
+3
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@
61
61
* @author Gary Russell
62
62
* @author Artem Bilan
63
63
* @author Joaquin Santana
64
+
* @author Darryl Smith
64
65
*
65
66
* @since 2.0
66
67
*/
@@ -160,6 +161,8 @@ public void testCopyFileToLocalDir() throws Exception {
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/test/java/org/springframework/integration/sftp/inbound/SftpMessageSourceTests.java
+14-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2018-2022 the original author or authors.
2
+
* Copyright 2018-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/test/java/org/springframework/integration/sftp/outbound/SftpOutboundTests.java
+13-4
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@
76
76
* @author Gary Russell
77
77
* @author Gunnar Hillert
78
78
* @author Artem Bilan
79
+
* @author Darryl Smith
79
80
*/
80
81
publicclassSftpOutboundTests {
81
82
@@ -84,7 +85,7 @@ public void testHandleFileMessage() throws Exception {
84
85
FiletargetDir = newFile("remote-target-dir");
85
86
assertThat(targetDir.exists()).as("target directory does not exist: " + targetDir.getName()).isTrue();
0 commit comments