I have a code and I want to put method invocation value in the name of the method.
        @Unroll
        def 'check #file other text'() {
        setup:
        def file = allProperties.keySet().getAt(0)
        ...
        where:
        ...
Now I create special variable which purpose is only for naming the method. Can I do something like:
        static def allProperties
        def setupSpec(){
           allProperties== [1: 'asd', 2: 'ddd']
        }
        @Unroll
        def 'check #allProperties.keySet().getAt(0) other text'() {
        ....
        where:
        ...
Edited: Add setupSpec()
 
    