You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Testing against Azure CosmosDB Emulator container](../../modules/azure/src/test/java/org/testcontainers/containers/CosmosDBEmulatorContainerTest.java) inside_block:testWithClientAgainstEmulatorContainer
105
106
<!--/codeinclude-->
106
107
108
+
### Azure service bus Emulator
109
+
110
+
Start Azure service bus Emulator during a test:
111
+
112
+
<!--codeinclude-->
113
+
[Starting a Azure Service bus Emulator container](../../modules/azure/src/test/java/org/testcontainers/azure/AzureServicebusEmulatorContainerTest.java) inside_block:emulatorContainerDefaultConfig
114
+
<!--/codeinclude-->
115
+
116
+
!!! note
117
+
This starts the service bus emulator with the [default config](https://github.com/Azure/azure-service-bus-emulator-installer/blob/main/ServiceBus-Emulator/Config/Config.json)
118
+
119
+
Start Azure service bus Emulator with custom config during a test:
120
+
121
+
<!--codeinclude-->
122
+
[Starting a Azure Service bus Emulator container with custom config](../../modules/azure/src/test/java/org/testcontainers/azure/AzureServicebusEmulatorContainerTest.java) inside_block:emulatorContainerCustomConfig
123
+
<!--/codeinclude-->
124
+
125
+
Build Azure Service bus sender client:
126
+
127
+
<!--codeinclude-->
128
+
[Testing against Azure Service bus Emulator container](../../modules/azure/src/test/java/org/testcontainers/azure/AzureServicebusEmulatorContainerTest.java) inside_block:buildClient
129
+
<!--/codeinclude-->
130
+
131
+
* See [Overview of the Azure Service Bus emulator](https://learn.microsoft.com/en-us/azure/service-bus-messaging/overview-emulator) for features and limitations.
132
+
*[Test locally by using the Azure Service Bus emulator](https://learn.microsoft.com/en-us/azure/service-bus-messaging/test-locally-with-service-bus-emulator?tabs=docker-linux-container)
133
+
134
+
107
135
## Adding this module to your project dependencies
108
136
109
137
Add the following dependency to your `pom.xml`/`build.gradle` file:
@@ -47,11 +71,14 @@ public SELF withConfigFile(MountableFile configFile) {
47
71
* Accepts the license for the Azure Service Bus Emulator container by setting the ACCEPT_EULA=Y
48
72
* variable as described at <a href="https://github.com/Azure/azure-service-bus-emulator-installer/blob/main/README.md">https://github.com/Azure/azure-service-bus-emulator-installer/blob/main/README.md#license</a>
0 commit comments