From d6adfa6a0bdce8b784883724b01ef7bf12504763 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 1 Sep 2023 15:53:35 +0200 Subject: [PATCH] QuarkusComponentTest blogpost: remove the incorrect note - see https://github.com/quarkusio/quarkus/pull/35595 and https://github.com/quarkusio/quarkus/issues/35591 --- _posts/2023-07-10-quarkus-component-test.adoc | 2 -- 1 file changed, 2 deletions(-) diff --git a/_posts/2023-07-10-quarkus-component-test.adoc b/_posts/2023-07-10-quarkus-component-test.adoc index 38ff0da0de..85c287bdc7 100644 --- a/_posts/2023-07-10-quarkus-component-test.adoc +++ b/_posts/2023-07-10-quarkus-component-test.adoc @@ -122,8 +122,6 @@ The container is then stopped and the config is released during the `after all` The fields annotated with `@Inject` and `@InjectMock` are injected after a test instance is created. Finally, the CDI request context is activated and terminated per each test method. -NOTE: By default, a new test instance is created for each test method. Therefore, a new CDI container is started for each test method. However, if the test class is annotated with `@org.junit.jupiter.api.TestInstance` and the test instance lifecycle is set to `org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS` then the CDI container will be shared across all test method executions of a given test class. - === Tested components By default, the types of all fields annotated with `@Inject` are considered component types.