Reputation: 11
I have a static method written in my domain class , which I have to test in my Grails test. Now how to call that method from domain class. That static method will fetch some data from my db and will return it.
Upvotes: 0
Views: 136
Reputation: 1467
Try this link: http://docs.grails.org/latest/guide/testing.html#unitTestingDomains
You'll find plenty of useful info regarding to testing with Grails there.
Upvotes: 0