Skip to content

Commit 30afdff

Browse files
committed
Fix CassandraContainerTest for latest Testcontainers
* Fix `HttpRequestExecutingMessageHandlerTests` for latest SF
1 parent 7df1261 commit 30afdff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-integration-cassandra/src/test/java/org/springframework/integration/cassandra/CassandraContainerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2022-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.
@@ -17,7 +17,7 @@
1717
package org.springframework.integration.cassandra;
1818

1919
import org.junit.jupiter.api.BeforeAll;
20-
import org.testcontainers.containers.CassandraContainer;
20+
import org.testcontainers.cassandra.CassandraContainer;
2121
import org.testcontainers.junit.jupiter.Testcontainers;
2222

2323
/**
@@ -34,7 +34,7 @@
3434
@Testcontainers(disabledWithoutDocker = true)
3535
public interface CassandraContainerTest {
3636

37-
CassandraContainer<?> CASSANDRA_CONTAINER = new CassandraContainer<>("cassandra:4.1");
37+
CassandraContainer CASSANDRA_CONTAINER = new CassandraContainer("cassandra");
3838

3939
@BeforeAll
4040
static void startContainer() {

spring-integration-http/src/test/java/org/springframework/integration/http/outbound/HttpRequestExecutingMessageHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ public void testInt2455UriNotEncoded() {
764764
.isThrownBy(() -> handler.handleMessage(new GenericMessage<>("queues/%2f/si.test.queue?foo#bar")));
765765

766766
assertThat(restTemplate.actualUrl.get())
767-
.isEqualTo("https://my.rabbitmq.com/api/queues/%2f/si.test.queue?foo#bar");
767+
.isEqualTo("https://my.RabbitMQ.com/api/queues/%2f/si.test.queue?foo#bar");
768768
}
769769

770770
@Test

0 commit comments

Comments
 (0)