Right,
so when I set up my mock using the testing plugin's mockFor method, I expect a method that returns null. If I do
myControl.demand.theMethod {return null}
in the debugger, the value that I set the 'theMethod' call result to is some closure in the debugger.
If I do
myControl.demand.theMethod {->return null}
the value is null, as expected.
I dont understand the difference....