Groovy Closure not recognized


#1

any thoughts on why closure (->) not getting recognized?
image


Passing Groovy Closure as parameter to callTestCase()
#2

@ssridharan

myClosure { TYPE arg ->
  // code
}

myOtherClosure { ->
  // code
}

#3

A post was split to a new topic: Asserting Nested JSON


#4

Yes, closure works. I just had to surround in {} wherever closure is used. Thanks


#5