Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.github.fridujo.rabbitmq.mock.exchange.FixDelayExchange doesn't exist but the test import it #157

Open
fighterhit opened this issue Sep 11, 2020 · 2 comments

Comments

@fighterhit
Copy link

com.github.fridujo.rabbitmq.mock.exchange.FixDelayExchange doesn't exist but the test import it in src/test/java/com/github/fridujo/rabbitmq/mock/spring/SpringIntegrationTest.java

@sozgat
Copy link

sozgat commented Dec 7, 2021

Hello @fighterhit ,

I had same errors and fixed.

Find code block in SpringIntegrationTest.java

@Bean
        ConnectionFactory connectionFactory() {
            return new CachingConnectionFactory(
                    MockConnectionFactoryFactory
                            .build()
                            .enableConsistentHashPlugin()
                            .withAdditionalExchange(creatorWithExchangeType("x-fix-delayed-message", FixDelayExchange::new))
            );
        }

and change it like below

@Bean
        ConnectionFactory connectionFactory() {
            return new CachingConnectionFactory(new MockConnectionFactory());
        }

@fighterhit
Copy link
Author

Thank you @sozgat , I will try it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants