ApplicationModuleTest bootstrap during inheritance #343
JiriFrankCZ
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, i´m just wondering whether is correct to bootstrap Spring again and again if we use abstract parent for multiple test with @ApplicationModuleTest. Better explain code:
Base parent class
Base module class
And real tested class in given module:
I suppose I´m doing something wrong, or this is bad approach, but I found it useful. To boostrap spring context once per module via this abstract parent class. But because of my bad configuration or lack of support in Spring/Modulith, it is currently not easily possible, because conext is bootstraping again and again with every single class like PositionEventListenerTest.
Anyone some hint for me? :) Thanks in advance for advice
Beta Was this translation helpful? Give feedback.
All reactions