Right
so when I customize my layout using the plugin mockFor method, I expect the method to return null. If i do
myControl.demand.theMethod {return null}
in the debugger, the value I set for the result of calling theMethod is some closure in the debugger.
If i do
myControl.demand.theMethod {->return null}
the value is null, as expected.
I do not understand the difference.
grails groovy
hvgotcodes
source share