diff --git a/docs/interaction_based_testing.adoc b/docs/interaction_based_testing.adoc index e3a5d10e16..92a16a5bc3 100644 --- a/docs/interaction_based_testing.adoc +++ b/docs/interaction_based_testing.adoc @@ -989,7 +989,7 @@ for the mocked `Class` during execution. ==== Global mocks and parallel execution Creating a global `GroovyMock`/`GroovyStub`/`GroovySpy` when <> is enabled, -requires that the spec is annotated with <> or `@@ResourceLock(org.spockframework.runtime.model.parallel.Resources.META_CLASS_REGISTRY)`. +requires that the spec is annotated with <> or `@ResourceLock(org.spockframework.runtime.model.parallel.Resources.META_CLASS_REGISTRY)`. If it is only used for a feature, then it suffices that the feature is annotated with `@ResourceLock(org.spockframework.runtime.model.parallel.Resources.META_CLASS_REGISTRY)`. The rule of thumb to choose between `@ResourceLock` and `@Isolated`, is to look at how widespread the mocked type is used. If it is widely used, then `@Isolated` is the safe choice, otherwise `@ResourceLock` may be sufficient.