import junit.framework.TestCase;\r
\r
import org.springframework.context.ApplicationContext;\r
+import org.springframework.context.ConfigurableApplicationContext;\r
import org.springframework.context.support.ClassPathXmlApplicationContext;\r
\r
import org.apache.commons.logging.Log;\r
/** Helper for tests using a Spring application co,text. */\r
public abstract class AbstractSpringTestCase extends TestCase {\r
protected final Log log = LogFactory.getLog(getClass());\r
- private ApplicationContext context;\r
+ private ConfigurableApplicationContext context;\r
\r
/**\r
* Gets (and create if necessary) the application context to use. Default\r
* implementation uses a class path xml application context and calls\r
* {@link #getApplicationContextLocation()}.\r
*/\r
- protected ApplicationContext getContext() {\r
+ protected ConfigurableApplicationContext getContext() {\r
if (context == null) {\r
context = new ClassPathXmlApplicationContext(\r
getApplicationContextLocation());\r