Ajith Baskaran
Ajith Baskaran

Reputation: 11

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

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

Answers (1)

Anton Hlinisty
Anton Hlinisty

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

Related Questions