How do I run a test with a toy Spring context populated with generated classes? #70244
Answered
by
NadChel
NadChel
asked this question in
Programming Help
Replies: 1 comment
-
Replace slashes with dots 🤦♂️ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NadChel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
How do I run a test with a toy Spring context populated with generated classes? Code below doesn't work. I can't scan
src
packages from within the test root. What could I do instead? It's important to scan packages since I need beans Mapstruct generates. I can't declare them as@Bean
s in the config cause it generates a mapper and a delegate (my mapper is decorated), and I can only retrieve the former withMappers.getMapper()
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions