Better Test Wiring Support for ConfigurationProperties
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
I have a ServiceUnitTest that is failing because on my Grails Service, I'm injecting an object annotated with `@ConfigurationProperties(PREFIX)` and the bean isn't being defined by the ServiceUnitTest.
Plugins like grails-mail have moved to configurationProperties so we should consider adding better support in our test framework to autowire these in unit tests.
Contributor guide
Research direction
Start with the failing ServiceUnitTest described in the issue and trace how its injected @ConfigurationProperties(PREFIX) bean is registered. Reproduce the grails-mail configurationProperties case; done means the configuration-properties object is available for autowiring in ServiceUnitTest without breaking existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100