samedi 5 janvier 2019

Spring integration tests with two independent modules

how can I include all beans from two independent modules in integration test? I'm not using Spring Boot. So i have structure like this:

module A
module common
module B

then A has common dependency, also B has common dependency. I'm running my tests from B module, so I can actually scan packages from B and common. Is it possible to make my test see every bean in both, A and B modules?

EDIT: I have configured beans with annotations, so I use @ComponentScan for searching beans

Aucun commentaire:

Enregistrer un commentaire