We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f954482 commit 2099e41Copy full SHA for 2099e41
grace-test-support/src/main/groovy/org/grails/testing/ParameterizedGrailsUnitTest.groovy
@@ -46,7 +46,7 @@ trait ParameterizedGrailsUnitTest<T> extends GrailsUnitTest {
46
mockArtefact(cutType)
47
String beanName = getBeanName(cutType)
48
if (beanName != null && applicationContext.containsBean(beanName)) {
49
- artefactInstance = applicationContext.getBean(beanName, T)
+ artefactInstance = (T) applicationContext.getBean(beanName)
50
}
51
else {
52
artefactInstance = cutType.newInstance()
0 commit comments