title: Spring Dependency Injection with TestNG
body: <p>Spring support JUnit quite well on that:
  With the <code>RunWith</code> and <code>ContextConfiguration</code> annotation, things look very intuitive</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = "classpath:dao-context.xml")
  </code></pre>
  
  <p>This test will be able to run both in Eclipse &amp; Maven in correctly.
  I wonder if there is similar stuff for TestNG. I'm considering moving to this "Next Generation" Framework but I didn't find a match for testing with Spring.</p>