From 174d7398b151fb83cd90c8a262e84642a61dcb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Tue, 25 Apr 2023 11:03:41 +0200 Subject: [PATCH] Verify the method name is given to method invocations --- .../test/groovy/org/spockframework/smoke/Interceptors.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy b/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy index 4d0f4b0dd7..8e77e34d27 100644 --- a/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy +++ b/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy @@ -237,6 +237,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } } @@ -249,6 +250,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } } @@ -261,6 +263,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } } @@ -273,6 +276,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } } @@ -285,6 +289,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } }