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

Ability to create IncomingRabbitMQMetadata for testing purposes #2945

Open
djarnis73 opened this issue Feb 26, 2025 · 0 comments
Open

Ability to create IncomingRabbitMQMetadata for testing purposes #2945

djarnis73 opened this issue Feb 26, 2025 · 0 comments

Comments

@djarnis73
Copy link

djarnis73 commented Feb 26, 2025

When unit testing using InMemoryConnector I could not figure out a way to receive messages containing IncomingRabbitMQMetadata, since it does not have any public constructors. See my stack overflow post for more details.

Would it be possible to allow for manually creation of IncomingRabbitMQMetadata or should the InMemoryConnector translate the OutgoingRabbitMQMetadata into IncomingRabbitMQMetadata when the message is processed?

I would love to contribute a PR on this, but would like some guidance on the appropriate way to implement this.

Btw, I did manage to work around my immediate problem, by using mockito to mock IncomingRabbitMQMetadata, but I would prefer if this could be tested without mocking.

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

1 participant