I am not able to use Spring's @Autowired annotations in the test methods.I am using JUnit for testing. @Autowiring works for normal classes in the beans but it does not work with the test methods. As I read in the forums, I have to implement spring-test in the pom.xml. I am still not able to auto wire and inject dependency of my service bean . Could you please help me to use dependency injection in the test class as I use dependency injection in my source classes.
Regards Alper