score:2

Accepted answer
@ContextConfiguration(locations = { "classpath:app-context.xml" })
public class SpringConfigurationTest extends AbstractTestNGSpringContextTests
{
    //...
}

score:0

@ContextConfiguration("/META-INF/app-context.xml")
public class SpringConfigurationTest extends AbstractTestNGSpringContextTests {

    @Autowired
    private AreaDateRepository adRepo;

    @Test
    public void shouldWireComponents() {
        Assert.assertNotNull(adRepo);
    }

}

Related Articles