I have a junit test class with following annotations :
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:custom-context.xml")
There exists a class in another context that is required in my test that is autowired so I require this context to be loaded. How can this be implemented ?
I've tried :
@ContextConfiguration("classpath:custom-context.xml , classpath:custom-context2.xml")
But this does now work as it does not seem to load multiple contexts using the ,
delimiter.