How to call a method from domain class when testing in Grails?

139 views Asked by At

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.

1

There are 1 answers

0
Anton Hlinisty On

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.