From 09c829aed7c0f1afb5df526be5b425b043e5d15d Mon Sep 17 00:00:00 2001 From: fml2 <534392+fml2@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:32:33 +0100 Subject: [PATCH] docs: Fix typos --- docs/stages.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/stages.adoc b/docs/stages.adoc index 24c1115b22..d9ac89e4d5 100644 --- a/docs/stages.adoc +++ b/docs/stages.adoc @@ -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. @@ -333,4 +333,4 @@ Now your subclass must be change as well: [source,java] ---- include::{sourcedir}/subclassing/GivenSpecialStepsFixed.java[tags=noPackage] ----- \ No newline at end of file +----