Skip to content

Commit 581d344

Browse files
Update testing.adoc > "@embeddedkafka Annotation with JUnit5" section (#2894)
* Update testing.adoc > "@embeddedkafka Annotation with JUnit5" section * Fix typo. --------- Co-authored-by: Gary Russell <[email protected]>
1 parent d25c4a2 commit 581d344

File tree

1 file changed

+2
-2
lines changed
  • spring-kafka-docs/src/main/antora/modules/ROOT/pages

1 file changed

+2
-2
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/testing.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ public class EmbeddedKafkaConditionTests {
339339
}
340340
----
341341

342-
A stand-alone (not Spring test context) broker will be created if the class annotated with `@EmbeddedBroker` is not also annotated (or meta annotated) with `ExtendedWith(SpringExtension.class)`.
343-
`@SpringJunitConfig` and `@SpringBootTest` are so meta annotated and the context-based broker will be used when either of those annotations are also present.
342+
A standalone broker (outside the Spring's TestContext) will be created unless a class annotated `@EmbeddedKafka` is also annotated (or meta-annotated) with `ExtendWith(SpringExtension.class)`.
343+
`@SpringJunitConfig` and `@SpringBootTest` are so meta-annotated and the context-based broker will be used when either of those annotations are also present.
344344

345345
IMPORTANT: When there is a Spring test application context available, the topics and broker properties can contain property placeholders, which will be resolved as long as the property is defined somewhere.
346346
If there is no Spring context available, these placeholders won't be resolved.

0 commit comments

Comments
 (0)