Provide first class support for Groovy context loading in tests [SPR-11631] #16254
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: test
Issues in the test module
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Abhijit Sarkar opened SPR-11631 and commented
There is no support for reading Groovy config files in tests without writing a custom ContextLoader. The default
@ContextConfiguration
tries to interpret Groovy files as XMLs.I have created a bare bone ContextLoader for supporting Groovy config. I'm interested in submitting a pull request but see that the CONTRIBUTING.md asks that I create a JIRA first.
GroovyContextConfiguration.java
GenericGroovyContextLoader.java
Usage
Affects: 4.0.3
Issue Links:
The text was updated successfully, but these errors were encountered: