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!

Hey @VarunDamani,

I’d say there are two options:

  1. Use the Solace Cloud REST API to spin up a service: PubSub+ Cloud
  2. Using the testcontainers project to spin up a docker container. This was discussed in another community thread: Integration/Functional Testing with JUnit and Solace — Solace Community

Hope that helps and let us know what you decide to go with :slight_smile:

Hey Marc, I used test containers finally.

Awesome @VarunDamani, can I assume it went well? Was it a good experience so far?