@CompileStatic trait GormToolsTest
Specification trait to use as a drop in replacement for DataTest, will set up the repositories properly for the mocked domains.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
mockDomains(Class<?>... domainClassesToMock) Mocks domain classes providing the equivalent GORM behavior as well as the Repo for the domain. |
Mocks domain classes providing the equivalent GORM behavior as well as the Repo for the domain. If a Repository Class is explicitly defined then this looks for it in the same package
domainClassesToMock
- The list of domain classes to mock