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 406c0f7f7b..4c19120b94 100644 --- a/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy +++ b/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy @@ -162,6 +162,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'shared initializer', "$it.spec.name") } @@ -174,6 +175,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'shared initializer method', "$it.spec.name.$it.method.name()") } @@ -186,6 +188,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'specification', "$it.spec.name") } @@ -198,6 +201,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'setup spec', "$it.spec.name") } @@ -210,6 +214,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'setup spec method', "$it.spec.name.$it.method.name()") } @@ -222,6 +227,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'feature', "$it.spec.name.$it.feature.name") } @@ -234,6 +240,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'initializer', "$it.spec.name.$it.feature.name") } @@ -246,6 +253,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'initializer method', "$it.spec.name.$it.feature.name.$it.method.name()") } @@ -258,6 +266,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'iteration', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]") } @@ -270,6 +279,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'setup', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]") } @@ -282,6 +292,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'setup method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()") } @@ -294,6 +305,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'feature method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()") } @@ -306,6 +318,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'cleanup', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]") } @@ -318,6 +331,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'cleanup method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()") } @@ -330,6 +344,7 @@ class FooSpec extends Specification { assert target != instance assert method assert !method.reflection + assert !method.name } proceed(it, 'cleanup spec', "$it.spec.name") } @@ -342,6 +357,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'cleanup spec method', "$it.spec.name.$it.method.name()") } @@ -360,6 +376,7 @@ class FooSpec extends Specification { assert target == instance assert method assert method.reflection + assert method.name } proceed(it, 'fixture method', "$it.spec.name${it.feature?.name?.with { name -> ".$name[#$it.iteration.iterationIndex]" } ?: ''}.$it.method.name()") }