Skip to content

Commit

Permalink
Fall back to an empty list of datasources if none configured (grails#389
Browse files Browse the repository at this point in the history
)
  • Loading branch information
guillermocalvo authored Mar 15, 2024
1 parent d723662 commit 8d9b20f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>), testInstance.domainClassesToMock?: [] as Class<?>[]

constraintRegistry(DefaultConstraintRegistry, ref("messageSource"))
grailsDomainClassMappingContext(grailsDatastore: "getMappingContext")
Expand Down

0 comments on commit 8d9b20f

Please sign in to comment.