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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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);
         
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.