Skip to content

Commit 4a3c427

Browse files
committed
Fix test to use setPublisherConfirms(true)
1 parent 404d53b commit 4a3c427

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/PublisherCallbackChannelTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
import org.junit.jupiter.api.Test;
3434

35-
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType;
3635
import org.springframework.amqp.rabbit.core.RabbitTemplate;
3736
import org.springframework.amqp.rabbit.junit.RabbitAvailable;
3837
import org.springframework.amqp.rabbit.junit.RabbitAvailableCondition;
@@ -74,7 +73,7 @@ void shutdownWhileCreate() throws IOException, TimeoutException {
7473
void testNotCached() throws Exception {
7574
CachingConnectionFactory cf = new CachingConnectionFactory(
7675
RabbitAvailableCondition.getBrokerRunning().getConnectionFactory());
77-
cf.setPublisherConfirmType(ConfirmType.CORRELATED);
76+
cf.setPublisherConfirms(true);
7877
cf.setChannelCacheSize(2);
7978
cf.afterPropertiesSet();
8079
RabbitTemplate template = new RabbitTemplate(cf);

0 commit comments

Comments
 (0)