cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r394108 - /cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
Date Fri, 14 Apr 2006 14:21:03 GMT
Author: cziegeler
Date: Fri Apr 14 07:20:59 2006
New Revision: 394108

URL: http://svn.apache.org/viewcvs?rev=394108&view=rev
Log:
Another fix for the test framework

Modified:
    cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java

Modified: cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java?rev=394108&r1=394107&r2=394108&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
Fri Apr 14 07:20:59 2006
@@ -18,8 +18,6 @@
 
 import java.io.InputStream;
 import java.net.URL;
-import java.util.Iterator;
-import java.util.Map;
 
 import junit.framework.TestCase;
 
@@ -36,6 +34,7 @@
 import org.apache.avalon.framework.parameters.Parameters;
 import org.apache.avalon.framework.service.ServiceException;
 import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.cocoon.Constants;
 import org.apache.cocoon.core.MutableSettings;
 import org.apache.cocoon.core.container.spring.BeanFactoryUtil;
 import org.apache.cocoon.core.container.spring.AvalonEnvironment;
@@ -264,6 +263,7 @@
                 }
             }
         }
+        context.put(Constants.CONTEXT_ENVIRONMENT_CONTEXT, new MockContext());
         this.addContext( context );
         context.makeReadOnly();
         return context ;



Mime
View raw message