Please read javadoc:
An abstract base test class that integrates the Spring TestContext Framework with explicit ApplicationContext testing support in the TestNG environment.
Basically, the Spring application context will be set for the test class.
If this still does not make sense, I would recommend that you read Chapter 11 of the Spring Testing Guide .
source share