Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix typos #1799

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/stages.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ JGiven will then validate that a previous stage had provided the value and will

=== Having More Than 3 Stages

In many cases three stages are typically enough to write a scenario. However, sometimes more than three are required. JGiven provides two mechanism for that: stage injection and dynamic adding of stages.
In many cases three stages are typically enough to write a scenario. However, sometimes more than three are required. JGiven provides two mechanisms for that: stage injection and dynamic adding of stages.

==== Stage Injection

Additional stages can be injected into a test class by declaring a field with the additional stage and annotate it with `@ScenarioStage`.
Additional stages can be injected into a test class by declaring a field with the additional stage and annotating it with `@ScenarioStage`.

Please note that a lifecycle model that reuses the same instance to execute multiple test methods is only partially compatible with JGiven. In particular, in such a model stages for different scenarios will be injected into the same field. This can lead to errors when attempting to run tests in parallel.

Expand Down Expand Up @@ -333,4 +333,4 @@ Now your subclass must be change as well:
[source,java]
----
include::{sourcedir}/subclassing/GivenSpecialStepsFixed.java[tags=noPackage]
----
----