Skip to content

Commit 9d21bf2

Browse files
artembilangaryrussell
authored andcommitted
Upgrade dependencies and fix tests for them
1 parent 39fef2c commit 9d21bf2

File tree

4 files changed

+33
-32
lines changed

4 files changed

+33
-32
lines changed

build.gradle

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ subprojects { subproject ->
8484
}
8585

8686
ext {
87-
activeMqVersion = '5.15.3'
88-
apacheSshdVersion = '2.0.0'
87+
activeMqVersion = '5.15.8'
88+
apacheSshdVersion = '2.1.0'
8989
aspectjVersion = '1.9.2'
9090
assertjVersion = '3.11.1'
9191
assertkVersion = '0.12'
@@ -94,38 +94,38 @@ subprojects { subproject ->
9494
commonsIoVersion = '2.6'
9595
commonsNetVersion = '3.6'
9696
curatorVersion = '4.0.1'
97-
derbyVersion = '10.13.1.1'
98-
eclipseLinkVersion = '2.7.1'
97+
derbyVersion = '10.14.2.0'
98+
eclipseLinkVersion = '2.7.3'
9999
ftpServerVersion = '1.1.1'
100100
googleJsr305Version = '3.0.2'
101-
groovyVersion = '2.5.3'
101+
groovyVersion = '2.5.4'
102102
guavaVersion = '26.0-jre'
103103
hamcrestVersion = '1.3'
104-
hazelcastVersion = '3.10.5'
105-
hibernateVersion = '5.3.6.Final'
106-
hsqldbVersion = '2.4.0'
104+
hazelcastVersion = '3.11'
105+
hibernateVersion = '5.3.7.Final'
106+
hsqldbVersion = '2.4.1'
107107
h2Version = '1.4.197'
108-
jackson2Version = '2.9.6'
108+
jackson2Version = '2.9.7'
109109
javaxActivationVersion = '1.1.1'
110110
javaxMailVersion = '1.6.2'
111111
jmsApiVersion = '2.0.1'
112112
jpa21ApiVersion = '1.0.0.Final'
113113
jpaApiVersion = '2.2.1'
114-
jrubyVersion = '9.1.16.0'
115-
jschVersion = '0.1.54'
114+
jrubyVersion = '9.2.4.0'
115+
jschVersion = '0.1.55'
116116
jsonpathVersion = '2.4.0'
117117
junit4Version = '4.12'
118118
junitJupiterVersion = '5.3.2'
119119
junitPlatformVersion = '1.3.2'
120-
jythonVersion = '2.5.3'
120+
jythonVersion = '2.7.0'
121121
kryoShadedVersion = '3.0.3'
122-
lettuceVersion = '5.1.0.RELEASE'
122+
lettuceVersion = '5.1.3.RELEASE'
123123
log4jVersion = '2.11.1'
124124
micrometerVersion = '1.1.0'
125-
mockitoVersion = '2.23.0'
126-
mysqlVersion = '8.0.11'
125+
mockitoVersion = '2.23.4'
126+
mysqlVersion = '8.0.13'
127127
pahoMqttClientVersion = '1.2.0'
128-
postgresVersion = '42.0.0'
128+
postgresVersion = '42.2.5'
129129
reactorNettyVersion = '0.8.3.RELEASE'
130130
reactorVersion = '3.2.3.RELEASE'
131131
romeToolsVersion = '1.9.0'
@@ -136,13 +136,13 @@ subprojects { subproject ->
136136
springDataMongoVersion = '2.1.3.RELEASE'
137137
springDataRedisVersion = '2.1.3.RELEASE'
138138
springGemfireVersion = '2.1.3.RELEASE'
139-
springSecurityVersion = '5.1.1.RELEASE'
139+
springSecurityVersion = '5.1.2.RELEASE'
140140
springRetryVersion = '1.2.2.RELEASE'
141141
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.1.3.RELEASE'
142142
springWsVersion = '3.0.4.RELEASE'
143143
tomcatVersion = "9.0.12"
144144
xmlUnitVersion = '1.6'
145-
xstreamVersion = '1.4.10'
145+
xstreamVersion = '1.4.11.1'
146146
}
147147

148148
eclipse {
@@ -565,7 +565,7 @@ project('spring-integration-scripting') {
565565
dependencies {
566566
compile project(":spring-integration-core")
567567

568-
testCompile("org.jruby:jruby:$jrubyVersion")
568+
testCompile("org.jruby:jruby-complete:$jrubyVersion")
569569
testCompile("org.codehaus.groovy:groovy:$groovyVersion")
570570
testCompile("org.codehaus.groovy:groovy-jsr223:$groovyVersion")
571571
testCompile("org.python:jython-standalone:$jythonVersion")

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/SftpTestSupport.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
*
3939
* @author David Turanski
4040
* @author Gary Russell
41+
* @author Artem Bilan
42+
*
4143
* @since 4.3
4244
*/
4345
public class SftpTestSupport extends RemoteFileTestSupport {
@@ -59,7 +61,7 @@ public static void createServer() throws Exception {
5961
server = SshServer.setUpDefaultServer();
6062
server.setPasswordAuthenticator((username, password, session) -> true);
6163
server.setPort(0);
62-
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser")));
64+
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser").toPath()));
6365
server.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory()));
6466
server.setFileSystemFactory(new VirtualFileSystemFactory(remoteTemporaryFolder.getRoot().toPath()));
6567
server.start();
@@ -73,15 +75,15 @@ public static SessionFactory<LsEntry> sessionFactory() {
7375
factory.setUser("foo");
7476
factory.setPassword("foo");
7577
factory.setAllowUnknownKeys(true);
76-
return new CachingSessionFactory<LsEntry>(factory);
78+
return new CachingSessionFactory<>(factory);
7779
}
7880

7981
@AfterClass
8082
public static void stopServer() throws Exception {
8183
server.stop();
82-
File hostkey = new File("hostkey.ser");
83-
if (hostkey.exists()) {
84-
hostkey.delete();
84+
File hostKey = new File("hostkey.ser");
85+
if (hostKey.exists()) {
86+
hostKey.delete();
8587
}
8688
}
8789

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpServerTests.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@
3232
import java.util.Arrays;
3333
import java.util.Collections;
3434

35-
import org.apache.sshd.common.NamedFactory;
3635
import org.apache.sshd.common.file.virtualfs.VirtualFileSystemFactory;
3736
import org.apache.sshd.server.SshServer;
38-
import org.apache.sshd.server.command.Command;
3937
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
4038
import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
4139
import org.junit.Test;
@@ -65,8 +63,8 @@ public void testUcPw() throws Exception {
6563
try {
6664
server.setPasswordAuthenticator((arg0, arg1, arg2) -> true);
6765
server.setPort(0);
68-
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser")));
69-
server.setSubsystemFactories(Collections.<NamedFactory<Command>>singletonList(new SftpSubsystemFactory()));
66+
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser").toPath()));
67+
server.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory()));
7068
final String pathname = System.getProperty("java.io.tmpdir") + File.separator + "sftptest" + File.separator;
7169
new File(pathname).mkdirs();
7270
server.setFileSystemFactory(new VirtualFileSystemFactory(Paths.get(pathname)));
@@ -103,7 +101,7 @@ private void testKeyExchange(String pubKey, String privKey, String passphrase)
103101
try {
104102
server.setPublickeyAuthenticator((username, key, session) -> key.equals(allowedKey));
105103
server.setPort(0);
106-
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser")));
104+
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser").toPath()));
107105
server.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory()));
108106
final String pathname = System.getProperty("java.io.tmpdir") + File.separator + "sftptest" + File.separator;
109107
new File(pathname).mkdirs();

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
/**
4949
* @author Gary Russell
5050
* @author Artem Bilan
51+
*
5152
* @since 3.0.2
5253
*/
5354
public class SftpSessionFactoryTests {
@@ -62,7 +63,7 @@ public void testConnectFailSocketOpen() throws Exception {
6263
try {
6364
server.setPasswordAuthenticator((arg0, arg1, arg2) -> true);
6465
server.setPort(0);
65-
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser")));
66+
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser").toPath()));
6667
server.start();
6768

6869
DefaultSftpSessionFactory f = new DefaultSftpSessionFactory();
@@ -108,7 +109,7 @@ public void testConnectFailSocketOpen() throws Exception {
108109
}
109110

110111
@Test
111-
public void testPasswordPassPhraseViaUserInfo() throws Exception {
112+
public void testPasswordPassPhraseViaUserInfo() {
112113
DefaultSftpSessionFactory f = new DefaultSftpSessionFactory();
113114
f.setUser("user");
114115
f.setAllowUnknownKeys(true);
@@ -213,7 +214,7 @@ private DefaultSftpSessionFactory createServerAndClient(SshServer server) throws
213214
server.setPublickeyAuthenticator((username, key, session) -> true);
214215
server.setPort(0);
215216
server.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory()));
216-
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser")));
217+
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser").toPath()));
217218
server.start();
218219

219220
DefaultSftpSessionFactory f = new DefaultSftpSessionFactory();

0 commit comments

Comments
 (0)