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 2007/01/10 14:16:36 UTC

svn commit: r494809 - /lenya/trunk/src/impl/test/org/apache/lenya/cms/metadata/MetaDataTest.java

Author: andreas
Date: Wed Jan 10 05:16:35 2007
New Revision: 494809

URL: http://svn.apache.org/viewvc?view=rev&rev=494809
Log:
MetaDataTest: don't use old-style ID a UUID

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

Modified: lenya/trunk/src/impl/test/org/apache/lenya/cms/metadata/MetaDataTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/cms/metadata/MetaDataTest.java?view=diff&rev=494809&r1=494808&r2=494809
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/cms/metadata/MetaDataTest.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/cms/metadata/MetaDataTest.java Wed Jan 10 05:16:35 2007
@@ -19,16 +19,11 @@
 
 import java.util.Map;
 
-import org.apache.avalon.framework.service.ServiceException;
 import org.apache.lenya.ac.impl.AbstractAccessControlTest;
 import org.apache.lenya.cms.metadata.dublincore.DublinCore;
 import org.apache.lenya.cms.publication.Document;
-import org.apache.lenya.cms.publication.DocumentBuildException;
 import org.apache.lenya.cms.publication.DocumentFactory;
-import org.apache.lenya.cms.publication.DocumentUtil;
 import org.apache.lenya.cms.publication.Publication;
-import org.apache.lenya.cms.repository.RepositoryUtil;
-import org.apache.lenya.cms.repository.Session;
 
 /**
  * Meta data test.
@@ -40,11 +35,9 @@
      * @throws Exception
      */
     public void testMetaData() throws Exception {
-        Session session = RepositoryUtil.getSession(getManager(), getRequest());
-        DocumentFactory factory = DocumentUtil.createDocumentFactory(getManager(), session);
 
         Publication publication = getPublication("test");
-        Document doc = factory.get(publication, Publication.AUTHORING_AREA, "/index", "en");
+        Document doc = publication.getArea("authoring").getSite().getNode("/index").getLink("en").getDocument(); 
 
         String namespaceUri = "foobar";
         Exception e = null;



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