第一个域效果很好。但是第二个域无法拥有" build"方法
import grails.test.spock.IntegrationSpec
import grails.buildtestdata.mixin.Build
@Build(Domain1)
@Build(Domain2)
class DomainServiceSpec extends IntergrationSpec {
def "test mock" () {
Domain1.build(a: a, b: b, c: c) //working fine
Domain2.build(a: a, b: b, c: c) //"build" method is not recognized
}
}