borinquenkid commented on PR #15683:
URL: https://github.com/apache/grails-core/pull/15683#issuecomment-4587459310
> ake a look at GrailsDataTckManager in the end branch. The following
changes would also need to be done as part of this:
>
> ```
> private List<Class> domainClasses = [
> ]
>
> /**
> * Returns an unmodifiable view of the domain classes list.
> * @return An unmodifiable list of domain classes
> */
> List<Class> getDomainClasses() {
> return Collections.unmodifiableList(domainClasses)
> }
>
> /**
> * Adds all the specified classes to the domain classes list.
> * @param classes The classes to add
> */
> void addAllDomainClasses(Collection<Class> classes) {
> domainClasses.addAll(classes)
> }
> ```
>
> There is also a lot more missing from this PR - all of the tests should
add the domains they want at the start in setupSpec(). The point of this change
was to have 1 spot where we pick the domains that are required for tests.
@jdaugherty Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]