Back to Testcontainers Java

Solace Container

docs/modules/solace.md

2.0.51.4 KB
Original Source

Solace Container

This module helps running Solace PubSub+ using Testcontainers.

Note that it's based on the official Docker image.

Usage example

You can start a solace container instance from any Java application by using:

<!--codeinclude-->

Solace container setup with simple authentication inside_block:solaceContainerSetup

<!--/codeinclude--> <!--codeinclude-->

Solace container setup with SSL inside_block:solaceContainerUsageSSL

<!--/codeinclude--> <!--codeinclude-->

Using a Solace container inside_block:solaceContainerUsage

<!--/codeinclude-->

Adding this module to your project dependencies

Add the following dependency to your pom.xml/build.gradle file:

=== "Gradle" groovy testImplementation "org.testcontainers:testcontainers-solace:{{latest_version}}" === "Maven" xml <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers-solace</artifactId> <version>{{latest_version}}</version> <scope>test</scope> </dependency>