Skip to content

Commit

Permalink
Merge pull request #1767 from mkouba/quarkus-component-test-update
Browse files Browse the repository at this point in the history
QuarkusComponentTest blogpost: remove the incorrect note
  • Loading branch information
mkouba authored Sep 4, 2023
2 parents 54b3b50 + d6adfa6 commit d48d36d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _posts/2023-07-10-quarkus-component-test.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d48d36d

Please sign in to comment.