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
Copy file name to clipboardExpand all lines: src/reference/asciidoc/testing.adoc
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -472,20 +472,15 @@ IMPORTANT: The method must be called before invoking any of the `isRunning()` st
472
472
Variable values are applied to all instances created after this invocation.
473
473
Invoke `clearEnvironmentVariableOverrides()` to reset the rule to use defaults (including any actual environment variables).
474
474
475
-
In your test cases, you can use those properties when creating the connection factory.
475
+
In your test cases, you can use the `brokerRunning` when creating the connection factory; `getConnectionFactory()` returns the rule's RabbitMQ `ConnectionFactory`.
476
476
The following example shows how to do so:
477
477
478
478
====
479
479
[source, java]
480
480
----
481
481
@Bean
482
-
public ConnectionFactory rabbitConnectionFactory() {
483
-
CachingConnectionFactory connectionFactory = new CachingConnectionFactory();
0 commit comments