Revert "FIxed compialtion issues"

This reverts commit b018b710d1.
This commit is contained in:
Marcin Grzejszczak
2020-01-20 10:27:52 +01:00
parent b018b710d1
commit 6d681783e9

View File

@@ -29,7 +29,6 @@ import org.mockito.ArgumentMatchers;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.amqp.core.MessagePropertiesBuilder;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener;
@@ -172,7 +171,7 @@ public class SpringAmqpStubMessages implements MessageVerifier<Message> {
// backward compatibility
return true;
}
return this.rabbitProperties.getPublisherConfirmType() != CachingConnectionFactory.ConfirmType.NONE;
return !this.rabbitProperties.isPublisherConfirms();
}
@Override