Fix CassandraContainerTest for latest Testcontainers

* Fix `HttpRequestExecutingMessageHandlerTests` for latest SF
This commit is contained in:
Artem Bilan
2024-10-08 11:08:17 -04:00
parent 7df1261cde
commit 30afdffb72
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2022 the original author or authors.
* Copyright 2022-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
package org.springframework.integration.cassandra;
import org.junit.jupiter.api.BeforeAll;
import org.testcontainers.containers.CassandraContainer;
import org.testcontainers.cassandra.CassandraContainer;
import org.testcontainers.junit.jupiter.Testcontainers;
/**
@@ -34,7 +34,7 @@ import org.testcontainers.junit.jupiter.Testcontainers;
@Testcontainers(disabledWithoutDocker = true)
public interface CassandraContainerTest {
CassandraContainer<?> CASSANDRA_CONTAINER = new CassandraContainer<>("cassandra:4.1");
CassandraContainer CASSANDRA_CONTAINER = new CassandraContainer("cassandra");
@BeforeAll
static void startContainer() {

View File

@@ -764,7 +764,7 @@ public class HttpRequestExecutingMessageHandlerTests {
.isThrownBy(() -> handler.handleMessage(new GenericMessage<>("queues/%2f/si.test.queue?foo#bar")));
assertThat(restTemplate.actualUrl.get())
.isEqualTo("https://my.rabbitmq.com/api/queues/%2f/si.test.queue?foo#bar");
.isEqualTo("https://my.RabbitMQ.com/api/queues/%2f/si.test.queue?foo#bar");
}
@Test