borinquenkid opened a new pull request, #16193:
URL: https://github.com/apache/grails-core/pull/16193

   ## Summary
   - `grails-datamapping-async` had no test infrastructure at all (no 
`src/test`, no Spock dependency). Added `testImplementation 
'org.spockframework:spock-core'` and `testRuntimeOnly 'org.slf4j:slf4j-nop'`.
   - Added `GormAsyncStaticApiSpec` and `AsyncQuerySpec`, covering 
`task()`/`list()`/`count()` delegation through the `@DelegateAsync`-generated 
methods and the `getDecorators()` new-session wrapping. `AsyncQuery` was 
previously untested anywhere in the repo (its only sibling, 
`GormAsyncStaticApi`, was exercised indirectly via a TCK spec in a different 
module, `grails-datamapping-core-test`).
   - Gave both classes' `PromiseDecorator` closures explicit parameter types 
(`Closure<?> callable`, `Object[] args`) instead of relying on implicit 
inference, fixing an IDE "cannot infer argument types" inspection on the 
generic SAM coercion. No behavior change.
   
   ## Test plan
   - [x] `./gradlew :grails-datamapping-async:test` - all 8 specs pass
   - [x] `./gradlew :grails-datamapping-async:codeStyle` - clean
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to