Spring Dependency Injection with TestNG
It works with TestNG as well. Your test class needs to extend one of the following classes: org.springframework.test.context.testng.AbstractTestNGSpringContextTests org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests