Skip to content

Commit

Permalink
dependencyInjection.feature: update living documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ibanFR committed Sep 24, 2024
1 parent 9057ac8 commit 9b4cbf6
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ Feature: Dependency Injection with CDI
For each scenario, a new CDI container is started.
If not present in the container, step definitions are added as unmanaged beans and dependencies are injected.


Scenario: State is not shared between step definitions
Given step definitions are added as unmanaged beans
When I change the state of an object
Then state has not been updated in the next step

Scenario: Step definitions must be ApplicationScoped to share state
To share state, step definitions and other support code must at least be application scoped.
To share state, step definitions must be at least application scoped.
Given step definitions are application scoped
When I perform an action that changes the state
Then state is shared between step definitions

Scenario: Support code must be application scoped to share state
To share state, support code must at least be application scoped.
Scenario: Support code must be ApplicationScoped to share state
To share state, support code must be at least application scoped.
Given I have 6 cukes in my belly
And I eat 2 more cukes
Then there are 8 cukes in my belly

0 comments on commit 9b4cbf6

Please sign in to comment.