Integration Testing with Solace
All,
I have a java based spring cloud stream application that publishes messages to solace topics based on an internal trigger. I am using StreamBridge to publish messages.
I want to write integration test cases for it for which I need to bring up a solace server.
Any idea on the best ways to do it?
Thanks in advance!
Comments
-
Hey @VarunDamani,
I'd say there are two options:
1. Use the Solace Cloud REST API to spin up a service: https://docs.solace.com/Solace-Cloud/ght_use_rest_api_services.htm
2. Using the testcontainers project to spin up a docker container. This was discussed in another community thread: https://solace.community/discussion/493/integration-functional-testing-with-junit-and-solaceHope that helps and let us know what you decide to go with
1 -
Hey Marc, I used test containers finally.
0 -
Awesome @VarunDamani, can I assume it went well? Was it a good experience so far?
0