Unit testing parameters in forward method

I always wanted to test the parameters being passed in the forward method in a controller in my unit tests. Suppose we have any controller like: [java] class DemoController { def anyAction() { forward(controller: "demo", action: "test", params: [param1: "1"]) } } [/java] to test this forward action, we first need to mock...

by Neha Gupta
Tag: forward method