You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/03/04 17:44:02 UTC

svn commit: r633539 - /lenya/trunk/src/impl/test/org/apache/lenya/cms/LenyaTestCase.java

Author: andreas
Date: Tue Mar  4 08:44:02 2008
New Revision: 633539

URL: http://svn.apache.org/viewvc?rev=633539&view=rev
Log:
Set entity resolver when running tests.

Modified:
    lenya/trunk/src/impl/test/org/apache/lenya/cms/LenyaTestCase.java

Modified: lenya/trunk/src/impl/test/org/apache/lenya/cms/LenyaTestCase.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/cms/LenyaTestCase.java?rev=633539&r1=633538&r2=633539&view=diff
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/cms/LenyaTestCase.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/cms/LenyaTestCase.java Tue Mar  4 08:44:02 2008
@@ -37,6 +37,8 @@
 import org.apache.cocoon.util.IOUtils;
 import org.apache.commons.lang.SystemUtils;
 import org.apache.excalibur.source.SourceResolver;
+import org.apache.excalibur.xml.EntityResolver;
+import org.apache.lenya.xml.DocumentHelper;
 
 /**
  * Base class for Lenya tests which need the context information.
@@ -118,6 +120,9 @@
         Context envContext = (Context) context.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT);
         objectModel.put(ObjectModelHelper.CONTEXT_OBJECT, envContext);
         context.put(ContextHelper.CONTEXT_OBJECT_MODEL, objectModel);
+        
+        EntityResolver entityResolver = (EntityResolver) getManager().lookup(EntityResolver.ROLE);
+        DocumentHelper.setEntityResolver(entityResolver);
         
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org