You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: type integration spec field as ConfigurableApplicationContext
Per Copilot PR #1215 review feedback (comments 3142335908 and 3142335915):
- `ApplicationContext.getBeanFactory()` is not part of the
`ApplicationContext` API; the previous code relied on Groovy
dynamic dispatch / a specific context implementation.
- Switch the autowired field type to `ConfigurableApplicationContext`
and call `getBeanDefinition(...)` / `containsBeanDefinition(...)`
on the returned `ConfigurableListableBeanFactory`. This makes the
required Spring API explicit at the source level.
Verified locally: `./gradlew :core-examples-integration-test-app:compileIntegrationTestGroovy`
BUILD SUCCESSFUL.
Assisted-by: claude-code:claude-4.6-opus
Copy file name to clipboardExpand all lines: plugin-core/examples/integration-test-app/src/integration-test/groovy/grails/plugin/springsecurity/SecurityAutoConfigurationExcluderIntegrationSpec.groovy
0 commit comments