This is an automated email from the ASF dual-hosted git repository.

matrei pushed a commit to branch deprecate-for-removal
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 3336212ec1cd90b8b068dbf5760cafd1607cf5f2
Author: Mattias Reichel <[email protected]>
AuthorDate: Thu Feb 26 15:06:32 2026 +0100

    undeprecate: grails.testing.spock.OnceBefore
    
    This is useful as it runs in the same context as setup()
    but only runs once. This gives you access to objects
    not yet initialized in setupSpec().
---
 .../src/main/groovy/grails/testing/spock/OnceBefore.groovy              | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/grails-testing-support-core/src/main/groovy/grails/testing/spock/OnceBefore.groovy
 
b/grails-testing-support-core/src/main/groovy/grails/testing/spock/OnceBefore.groovy
index c1655377c7..a4c2efdd02 100644
--- 
a/grails-testing-support-core/src/main/groovy/grails/testing/spock/OnceBefore.groovy
+++ 
b/grails-testing-support-core/src/main/groovy/grails/testing/spock/OnceBefore.groovy
@@ -31,8 +31,6 @@ import org.junit.jupiter.api.BeforeEach
  *
  * @see org.junit.jupiter.api.BeforeEach
  * @see grails.testing.spock.RunOnce
- * @deprecated Use Spock native setup/cleanup/…​ fixture methods instead.
  */
-@Deprecated
 @AnnotationCollector([BeforeEach, RunOnce])
 @interface OnceBefore {}

Reply via email to