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
@@ -522,20 +522,15 @@ IMPORTANT: The method must be called before invoking any of the `isRunning()` st
522
522
Variable values are applied to all instances created after this invocation.
523
523
Invoke `clearEnvironmentVariableOverrides()` to reset the rule to use defaults (including any actual environment variables).
524
524
525
-
In your test cases, you can use those properties when creating the connection factory.
525
+
In your test cases, you can use the `brokerRunning` when creating the connection factory; `getConnectionFactory()` returns the rule's RabbitMQ `ConnectionFactory`.
526
526
The following example shows how to do so:
527
527
528
528
====
529
529
[source, java]
530
530
----
531
531
@Bean
532
-
public ConnectionFactory rabbitConnectionFactory() {
533
-
CachingConnectionFactory connectionFactory = new CachingConnectionFactory();
0 commit comments