Skip to content

Conversation

@pedjak
Copy link

@pedjak pedjak commented Jun 9, 2011

Bug: MockUtils.addDynamicInstanceMethods() generates addTo* methods that look only at fields listed in hasMany property when searching for a proper place to put back-reference. If such a field is not found, the rest of fields are not considered for placing the back-reference. Hence, the domain classes crafted as in the example posted in GRAILS-7309 are not properly mocked.

The patch fixes MockUtils class and provide two additional tests: one based on the old GrailsUnitTestCase and another using the new mixin approach.

graemerocher added a commit that referenced this pull request Jun 29, 2011
@graemerocher graemerocher merged commit c3bc8d7 into apache:master Jun 29, 2011
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Jan 7, 2025
* Revert "Remove deprecated grails-events-compat project."

This reverts commit f5e36db.

* build: Change groovy core library declaration name

It's name was previously a sub-path of other groovy modules

* build: Add dependency resolution of Groovy Snapshot versions
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Jan 9, 2025
* Update dependencies to resolve build issue
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Jan 15, 2025
Extend GrailsUnitTest to set localOverride for GrailsPlaceholderConfi…
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Apr 14, 2025
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Apr 19, 2025
* added direct access to BrowserWebDriverContainer via getContainer().

* Added references with @see to javadoc
jdaugherty pushed a commit that referenced this pull request May 1, 2025
jdaugherty pushed a commit that referenced this pull request May 1, 2025
…keleton/client/elliptic-6.5.7

Bump elliptic from 6.5.4 to 6.5.7 in /skeleton/client
jdaugherty pushed a commit that referenced this pull request May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants