diff --git a/grails-gorm-testing-support/src/main/groovy/org/grails/testing/gorm/spock/DataTestSetupSpecInterceptor.groovy b/grails-gorm-testing-support/src/main/groovy/org/grails/testing/gorm/spock/DataTestSetupSpecInterceptor.groovy index fa0deb8220..c233453295 100644 --- a/grails-gorm-testing-support/src/main/groovy/org/grails/testing/gorm/spock/DataTestSetupSpecInterceptor.groovy +++ b/grails-gorm-testing-support/src/main/groovy/org/grails/testing/gorm/spock/DataTestSetupSpecInterceptor.groovy @@ -43,7 +43,7 @@ class DataTestSetupSpecInterceptor implements IMethodInterceptor { Class.forName(source) } }) - grailsDatastore SimpleMapDatastore, DatastoreUtils.createPropertyResolver(application.config), application.config?.dataSources?.keySet(), testInstance.domainClassesToMock?: [] as Class[] + grailsDatastore SimpleMapDatastore, DatastoreUtils.createPropertyResolver(application.config), application.config?.dataSources?.keySet() ?: ([] as Set), testInstance.domainClassesToMock?: [] as Class[] constraintRegistry(DefaultConstraintRegistry, ref("messageSource")) grailsDomainClassMappingContext(grailsDatastore: "getMappingContext")