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
- Call toString() to force initialization of the mocked instances
- Use produceWith instead of createWith
- Use addTransitiveTypeClosure instead of addType to support more than just one type
- Minor refactoring of the processMockBean method
- Add unit test
- Re-work HelidonTestNgListener to initialize the testInstance with an extension
Fixeshelidon-io#9397Fixeshelidon-io#9411
danielkec
pushed a commit
to danielkec/helidon
that referenced
this issue
Dec 20, 2024
- Call toString() to force initialization of the mocked instances
- Use produceWith instead of createWith
- Use addTransitiveTypeClosure instead of addType to support more than just one type
- Minor refactoring of the processMockBean method
- Add unit test
- Re-work HelidonTestNgListener to initialize the testInstance with an extension
Fixeshelidon-io#9397Fixeshelidon-io#9411
(cherry picked from commit 6a93b66)
Environment Details
Problem Description
HelidonTestNgListener
lets TestNG create the test instance and then uses CDI to perform injection.It uses
beanManager.createAnnotatedType(clazz)
which discards anything done by extensions withProcessAnnotatedType
.E.g
MockBeansCdiExtension
adds an@Inject
annotation programmatically.Steps to reproduce
The text was updated successfully, but these errors were encountered: