Skip to content

Commit 5333a56

Browse files
authored
Merge pull request #485 from AxonIQ/enhancement/port-2025.2.2
Port 2025.2.2 to 2026.0.0
2 parents c44a938 + 4e6a150 commit 5333a56

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

pom.xml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<axonserver.api.version>2026.0.0-SNAPSHOT</axonserver.api.version>
4848

49-
<grpc.version>1.76.0</grpc.version>
49+
<grpc.version>1.79.0</grpc.version>
5050
<protobuf.version>4.34.0</protobuf.version>
5151

5252
<slf4j.version>2.0.16</slf4j.version>
@@ -60,7 +60,7 @@
6060
<jacoco-maven-plugin.version>0.8.14</jacoco-maven-plugin.version>
6161
<junit.jupiter.version>5.14.3</junit.jupiter.version>
6262
<mockito.version>5.23.0</mockito.version>
63-
<testcontainers.version>1.21.4</testcontainers.version>
63+
<testcontainers.version>2.0.3</testcontainers.version>
6464

6565
<httpclient5.version>5.6</httpclient5.version>
6666
<toxiproxy.version>2.1.11</toxiproxy.version>
@@ -135,6 +135,21 @@
135135
<version>${reactive.streams.version}</version>
136136
<scope>test</scope>
137137
</dependency>
138+
139+
<!-- For update of testng version, used by reactive-streams-tck to avoid vulnerability -->
140+
<dependency>
141+
<groupId>org.testng</groupId>
142+
<artifactId>testng</artifactId>
143+
<version>7.11.0</version>
144+
<scope>test</scope>
145+
</dependency>
146+
<!-- Apparently the log4j dependencies don't all include their own version -->
147+
<dependency>
148+
<groupId>org.apache.logging.log4j</groupId>
149+
<artifactId>log4j-core</artifactId>
150+
<version>${log4j.version}</version>
151+
<scope>test</scope>
152+
</dependency>
138153
</dependencies>
139154
</dependencyManagement>
140155

@@ -245,13 +260,13 @@
245260
</dependency>
246261
<dependency>
247262
<groupId>org.testcontainers</groupId>
248-
<artifactId>toxiproxy</artifactId>
263+
<artifactId>testcontainers-toxiproxy</artifactId>
249264
<version>${testcontainers.version}</version>
250265
<scope>test</scope>
251266
</dependency>
252267
<dependency>
253268
<groupId>org.testcontainers</groupId>
254-
<artifactId>junit-jupiter</artifactId>
269+
<artifactId>testcontainers-junit-jupiter</artifactId>
255270
<version>${testcontainers.version}</version>
256271
<scope>test</scope>
257272
</dependency>
@@ -304,6 +319,12 @@
304319
</artifactItems>
305320
</configuration>
306321
</execution>
322+
<!-- this makes dependencies available as properties that resolve to the actual jar file -->
323+
<execution>
324+
<goals>
325+
<goal>properties</goal>
326+
</goals>
327+
</execution>
307328
</executions>
308329
</plugin>
309330
<!-- Generated classes for .proto files -->
@@ -406,6 +427,7 @@
406427
<include>**/*Test_*.java</include>
407428
<include>**/*Tests_*.java</include>
408429
</includes>
430+
<argLine>-javaagent:${org.mockito:mockito-core:jar}</argLine>
409431
</configuration>
410432
</plugin>
411433
<plugin>

src/main/java/io/axoniq/axonserver/connector/Registration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ default Registration awaitAck(long timeout, TimeUnit unit) throws TimeoutExcepti
5858
* Registers the given {@code runnable} to {@code this} {@link Registration} to be executed when the acknowledgement
5959
* of {@code this} {@link Registration} is received. Allows for the addition of further logic to {@code this
6060
* Registration}, like invoking {@link #awaitAck(long, TimeUnit)} for example.
61-
* <p/>
61+
* <p>
6262
* The given {@code runnable} is invoked, regardless of successful or failed acknowledgement. Use
6363
* {@link #onAck(Consumer)} to register an action that needs to distinguish between successful and failed
6464
* registration.

src/test/java/io/axoniq/axonserver/connector/admin/AdminChannelIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
import static io.axoniq.axonserver.connector.testutils.AssertUtils.assertWithin;
5555
import static java.util.concurrent.TimeUnit.MILLISECONDS;
5656
import static java.util.concurrent.TimeUnit.SECONDS;
57-
import static org.junit.Assert.assertFalse;
58-
import static org.junit.Assert.fail;
5957
import static org.junit.jupiter.api.Assertions.assertEquals;
58+
import static org.junit.jupiter.api.Assertions.assertFalse;
6059
import static org.junit.jupiter.api.Assertions.assertTrue;
60+
import static org.junit.jupiter.api.Assertions.fail;
6161
import static org.mockito.Mockito.*;
6262

6363
/**

src/test/java/io/axoniq/axonserver/connector/event/dcb/DcbEndToEndTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.junit.jupiter.api.*;
2727
import org.slf4j.Logger;
2828
import org.slf4j.LoggerFactory;
29-
import org.testcontainers.containers.output.Slf4jLogConsumer;
3029
import reactor.core.publisher.Flux;
3130
import reactor.test.StepVerifier;
3231

@@ -92,8 +91,6 @@ void setUp() {
9291
} else {
9392
// Connect to Docker container
9493
builder.routingServers(axonServerAddress);
95-
Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(logger);
96-
axonServerContainer.followOutput(logConsumer);
9794
}
9895

9996
client = builder.build();

0 commit comments

Comments
 (0)