Thanks for the reply Jeanne and Javesh.
Project A is having
java configuration and project B is xml configured. As suggested by Jeanne I used <context:component-scan base-package="com.coderanch.myPackage" /> and imported project A's spring-context xml. But I dont have any idea what is happening when I run the
test it is throwing following error as it is not able to find the bean.
project A config file
And individually project A is running
Test class