git-svn-id: https://svn.argeo.org/slc/trunk@1286 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 25 Jun 2008 17:21:04 +0000 (17:21 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 25 Jun 2008 17:21:04 +0000 (17:21 +0000)
org.argeo.slc.core/src/main/java/org/argeo/slc/unit/AbstractSpringTestCase.java

index 4ad916d57018f671f5554a3aaab9ea9243118134..625564fa79ddcebce376a88f502a637b44f2d001 100644 (file)
@@ -3,6 +3,7 @@ package org.argeo.slc.unit;
 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
@@ -14,14 +15,14 @@ import org.argeo.slc.spring.SpringUtils;
 /** 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