1

I am testing my controller and so I mock out other methods by using...

MyController controller = [updateSomething:{obj-> null}] as MyController

However, when I run with grails test-app I see.

Unable to load template for uri [/myController2_g/_refreshArea.gsp]. Template not found.

When the template is actually located at /myController/_refreshArea.gsp. Running as a regular unit test seems to work fine.

Update

I did find this but I don't like that approach are there others?

Community
  • 1
  • 1
Jackie
  • 21,969
  • 32
  • 147
  • 289

0 Answers0