Skip to content

Commit 6f3b642

Browse files
committed
Upgrade dependencies to the latest minor versions
* Fix deprecation from AssertJ
1 parent c78630e commit 6f3b642

File tree

10 files changed

+50
-47
lines changed

10 files changed

+50
-47
lines changed

build.gradle

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,54 +52,54 @@ ext {
5252
}
5353
modifiedFiles.finalizeValueOnRead()
5454

55-
apacheSshdVersion = '2.11.0'
56-
artemisVersion = '2.31.2'
55+
apacheSshdVersion = '2.12.0'
56+
artemisVersion = '2.32.0'
5757
aspectjVersion = '1.9.21.1'
58-
assertjVersion = '3.24.2'
58+
assertjVersion = '3.25.3'
5959
assertkVersion = '0.28.0'
6060
avroVersion = '1.11.3'
6161
awaitilityVersion = '4.2.0'
62-
camelVersion = '4.3.0'
62+
camelVersion = '4.4.0'
6363
commonsDbcp2Version = '2.11.0'
6464
commonsIoVersion = '2.15.1'
6565
commonsNetVersion = '3.10.0'
66-
curatorVersion = '5.5.0'
66+
curatorVersion = '5.6.0'
6767
debeziumVersion = '2.5.1.Final'
6868
derbyVersion = '10.16.1.1'
6969
ftpServerVersion = '1.2.0'
7070
graalvmVersion = '23.1.2'
7171
greenmailVersion = '2.1.0-alpha-4'
72-
groovyVersion = '5.0.0-alpha-5'
72+
groovyVersion = '4.0.18'
7373
hamcrestVersion = '2.2'
7474
hazelcastVersion = '5.3.6'
7575
hibernateVersion = '6.4.4.Final'
7676
hsqldbVersion = '2.7.2'
7777
h2Version = '2.2.224'
78-
jacksonVersion = '2.15.4'
78+
jacksonVersion = '2.16.1'
7979
jaxbVersion = '4.0.4'
8080
jcifsVersion = '2.1.37'
81-
jeroMqVersion = '0.5.4'
81+
jeroMqVersion = '0.6.0'
8282
jmsApiVersion = '3.1.0'
8383
jpaApiVersion = '3.1.0'
8484
jrubyVersion = '9.4.6.0'
8585
jsonpathVersion = '2.9.0'
8686
junit4Version = '4.13.2'
8787
junitJupiterVersion = '5.10.2'
8888
jythonVersion = '2.7.3'
89-
kotlinCoroutinesVersion = '1.7.3'
90-
kryoVersion = '5.5.0'
89+
kotlinCoroutinesVersion = '1.8.0'
90+
kryoVersion = '5.6.0'
9191
lettuceVersion = '6.3.1.RELEASE'
92-
log4jVersion = '2.22.1'
92+
log4jVersion = '2.23.0'
9393
mailVersion = '2.0.2'
9494
micrometerTracingVersion = '1.3.0-SNAPSHOT'
9595
micrometerVersion = '1.13.0-SNAPSHOT'
96-
mockitoVersion = '5.8.0'
96+
mockitoVersion = '5.10.0'
9797
mongoDriverVersion = '4.11.1'
98-
mysqlVersion = '8.2.0'
98+
mysqlVersion = '8.3.0'
9999
oracleVersion = '23.3.0.23.09'
100100
pahoMqttClientVersion = '1.2.5'
101101
postgresVersion = '42.7.2'
102-
protobufVersion = '4.0.0-rc-2'
102+
protobufVersion = '3.25.3'
103103
r2dbch2Version = '1.0.0.RELEASE'
104104
reactorVersion = '2023.0.3'
105105
resilience4jVersion = '2.2.0'
@@ -119,7 +119,7 @@ ext {
119119
tomcatVersion = '10.1.19'
120120
xmlUnitVersion = '2.9.1'
121121
xstreamVersion = '1.4.20'
122-
ztZipVersion = '1.16'
122+
ztZipVersion = '1.17'
123123

124124
javaProjects = subprojects - project(':spring-integration-bom')
125125
}

spring-integration-file/src/test/java/org/springframework/integration/file/aggregator/FileAggregatorTests.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021-2022 the original author or authors.
2+
* Copyright 2021-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,8 +20,8 @@
2020
import java.io.FileOutputStream;
2121
import java.io.IOException;
2222
import java.nio.charset.StandardCharsets;
23-
import java.util.List;
2423

24+
import org.assertj.core.api.InstanceOfAssertFactories;
2525
import org.junit.jupiter.api.AfterAll;
2626
import org.junit.jupiter.api.BeforeAll;
2727
import org.junit.jupiter.api.Test;
@@ -114,8 +114,7 @@ void testFileAggregator() {
114114
.doesNotContainKey(IntegrationMessageHeaderAccessor.CORRELATION_ID);
115115

116116
assertThat(receive.getPayload())
117-
.isInstanceOf(List.class)
118-
.asList()
117+
.asInstanceOf(InstanceOfAssertFactories.LIST)
119118
.contains("SECOND LINE", "LAST LINE", "FIRST LINE");
120119
}
121120

@@ -133,8 +132,7 @@ void testEmptyFileAggregator() throws IOException {
133132
.doesNotContainKey(IntegrationMessageHeaderAccessor.CORRELATION_ID);
134133

135134
assertThat(receive.getPayload())
136-
.isInstanceOf(List.class)
137-
.asList()
135+
.asInstanceOf(InstanceOfAssertFactories.LIST)
138136
.isEmpty();
139137
}
140138

spring-integration-http/src/test/java/org/springframework/integration/http/dsl/HttpDslTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 the original author or authors.
2+
* Copyright 2016-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
2121
import java.util.List;
2222
import java.util.Map;
2323

24+
import org.assertj.core.api.InstanceOfAssertFactories;
2425
import org.junit.jupiter.api.BeforeEach;
2526
import org.junit.jupiter.api.Test;
2627

@@ -194,7 +195,7 @@ public void testMultiPartFiles() throws Exception {
194195
assertThat((Map<String, ?>) payload)
195196
.hasSize(1)
196197
.extracting((map) -> map.get("a1"))
197-
.asList()
198+
.asInstanceOf(InstanceOfAssertFactories.LIST)
198199
.hasSize(2)
199200
.satisfies((list) -> {
200201
assertThat(list)

spring-integration-http/src/test/java/org/springframework/integration/http/inbound/HttpRequestHandlingMessagingGatewayTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@
2626

2727
import com.fasterxml.jackson.databind.ObjectMapper;
2828
import jakarta.servlet.http.HttpServletRequest;
29+
import org.assertj.core.api.InstanceOfAssertFactories;
2930
import org.junit.jupiter.api.Test;
3031

3132
import org.springframework.beans.factory.BeanFactory;
@@ -301,8 +302,7 @@ public void testJsonRequestBody() throws Exception {
301302

302303
assertThat(message).isNotNull()
303304
.extracting(Message::getPayload)
304-
.isInstanceOf(List.class)
305-
.asList()
305+
.asInstanceOf(InstanceOfAssertFactories.LIST)
306306
.hasSize(1)
307307
.element(0)
308308
.isInstanceOf(TestBean.class)

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/config/JdbcOutboundGatewayParserTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,12 +19,12 @@
1919
import java.sql.PreparedStatement;
2020
import java.sql.SQLException;
2121
import java.util.Collections;
22-
import java.util.List;
2322
import java.util.Map;
2423

2524
import javax.sql.DataSource;
2625

2726
import org.apache.commons.logging.Log;
27+
import org.assertj.core.api.InstanceOfAssertFactories;
2828
import org.junit.jupiter.api.AfterEach;
2929
import org.junit.jupiter.api.Test;
3030

@@ -281,8 +281,7 @@ public void testOutboundGatewayInsideChain() {
281281
assertThat(reply)
282282
.isNotNull()
283283
.extracting(Message::getPayload)
284-
.isInstanceOf(List.class)
285-
.asList()
284+
.asInstanceOf(InstanceOfAssertFactories.LIST)
286285
.hasSize(1)
287286
.element(0)
288287
.isInstanceOf(Map.class)

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/JdbcMessageStoreTests.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,6 +38,7 @@
3838
import org.apache.commons.pool2.ObjectPool;
3939
import org.apache.commons.pool2.impl.GenericObjectPool;
4040
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
41+
import org.assertj.core.api.InstanceOfAssertFactories;
4142
import org.hsqldb.HsqlException;
4243
import org.junit.jupiter.api.BeforeEach;
4344
import org.junit.jupiter.api.Test;
@@ -576,7 +577,10 @@ public void testMessageGroupStreamNoConnectionPoolLeak() throws NoSuchMethodExce
576577
collectionArgumentResolver.resolveArgument(methodParameter,
577578
new GenericMessage<>(pooledMessageStore.getMessageGroup(groupId).getMessages()));
578579

579-
assertThat(result).isInstanceOf(Collection.class).asList().hasSize(1).contains("test data");
580+
assertThat(result)
581+
.asInstanceOf(InstanceOfAssertFactories.LIST)
582+
.hasSize(1)
583+
.contains("test data");
580584
}
581585

582586
pooledMessageStore.removeMessageGroup(groupId);

spring-integration-jms/src/test/java/org/springframework/integration/jms/ActiveMQMultiContextTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@ public abstract class ActiveMQMultiContextTests {
4949
private static final EmbeddedActiveMQ broker = new EmbeddedActiveMQ();
5050

5151
static {
52-
amqFactory.setDeserializationWhiteList(ObjectInputStreamWithClassLoader.CATCH_ALL_WILDCARD);
52+
amqFactory.setDeserializationAllowList(ObjectInputStreamWithClassLoader.CATCH_ALL_WILDCARD);
5353
amqFactory.setRetryInterval(0);
5454
}
5555

spring-integration-kafka/src/test/java/org/springframework/integration/kafka/outbound/KafkaProducerMessageHandlerTests.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 the original author or authors.
2+
* Copyright 2016-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -86,7 +86,6 @@
8686
import org.springframework.messaging.PollableChannel;
8787
import org.springframework.messaging.support.ErrorMessage;
8888
import org.springframework.messaging.support.GenericMessage;
89-
import org.springframework.transaction.PlatformTransactionManager;
9089
import org.springframework.transaction.TransactionDefinition;
9190
import org.springframework.transaction.TransactionException;
9291
import org.springframework.transaction.support.AbstractPlatformTransactionManager;
@@ -558,10 +557,10 @@ void testConsumeAndProduceTransaction() throws Exception {
558557
ProducerFactory pf = mock(ProducerFactory.class);
559558
given(pf.transactionCapable()).willReturn(true);
560559
willReturn(producer).given(pf).createProducer(isNull());
561-
PlatformTransactionManager ptm = new KafkaTransactionManager(pf);
560+
KafkaTransactionManager ptm = new KafkaTransactionManager(pf);
562561
ContainerProperties props = new ContainerProperties("foo");
563562
props.setGroupId("group");
564-
props.setTransactionManager(ptm);
563+
props.setKafkaAwareTransactionManager(ptm);
565564
props.setAssignmentCommitOption(AssignmentCommitOption.ALWAYS);
566565
final KafkaTemplate template = new KafkaTemplate(pf);
567566
KafkaMessageListenerContainer container = new KafkaMessageListenerContainer<>(cf, props);
@@ -705,7 +704,7 @@ protected Producer createTransactionalProducer(String txIdPrefix) {
705704
tm.setTransactionIdPrefix("tm.tx.id.");
706705
ContainerProperties props = new ContainerProperties("foo");
707706
props.setGroupId("group");
708-
props.setTransactionManager(tm);
707+
props.setKafkaAwareTransactionManager(tm);
709708
props.setAssignmentCommitOption(AssignmentCommitOption.ALWAYS);
710709
final KafkaTemplate template = new KafkaTemplate(pf);
711710
template.setTransactionIdPrefix("template.tx.id.");

spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/store/ConfigurableMongoDbMessageGroupStoreTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
1919
import java.util.List;
2020
import java.util.Map;
2121

22+
import org.assertj.core.api.InstanceOfAssertFactories;
2223
import org.bson.Document;
2324
import org.junit.jupiter.api.Disabled;
2425
import org.junit.jupiter.api.Test;
@@ -87,7 +88,7 @@ void groupIsForceReleaseAfterTimeoutWhenGroupConditionIsSet() {
8788

8889
assertThat(receive)
8990
.extracting("payload")
90-
.asList()
91+
.asInstanceOf(InstanceOfAssertFactories.LIST)
9192
.hasSize(1);
9293
}
9394
}

spring-integration-scripting/src/test/java/org/springframework/integration/scripting/jsr223/PythonScriptExecutorTests.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,8 +19,9 @@
1919
import java.util.HashMap;
2020
import java.util.Map;
2121

22-
import org.junit.Before;
23-
import org.junit.Test;
22+
import org.assertj.core.api.InstanceOfAssertFactories;
23+
import org.junit.jupiter.api.BeforeEach;
24+
import org.junit.jupiter.api.Test;
2425
import org.python.core.PyTuple;
2526

2627
import org.springframework.core.io.ClassPathResource;
@@ -41,7 +42,7 @@ public class PythonScriptExecutorTests {
4142

4243
private ScriptExecutor executor;
4344

44-
@Before
45+
@BeforeEach
4546
public void init() {
4647
this.executor = new PythonScriptExecutor();
4748
}
@@ -77,7 +78,7 @@ public void test3() {
7778
assertThat(obj)
7879
.isNotNull()
7980
.isInstanceOf(PyTuple.class)
80-
.asList()
81+
.asInstanceOf(InstanceOfAssertFactories.LIST)
8182
.element(0)
8283
.isEqualTo(1);
8384
}
@@ -93,7 +94,7 @@ public void test3WithVariables() {
9394
assertThat(obj)
9495
.isNotNull()
9596
.isInstanceOf(PyTuple.class)
96-
.asList()
97+
.asInstanceOf(InstanceOfAssertFactories.LIST)
9798
.element(0)
9899
.isEqualTo(1);
99100
}

0 commit comments

Comments
 (0)