svn commit: r743148 - in /lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication: DocumentFactoryTest.java file/
[email protected] Tue, 10 Feb 2009 22:55:07 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Tue Feb 10 22:55:06 2009
New Revision: 743148
URL: http://svn.apache.org/viewvc?rev=743148&view=rev
Log:
Removing obsolete FilePublicationTest (replaced by DocumentManagerTest), fixed DocumentFactoryTest.
Removed:
lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication/file/
Modified:
lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication/DocumentFactoryTest.java
Modified: lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication/DocumentFactoryTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication/DocumentFactoryTest.java?rev=743148&r1=743147&r2=743148&view=diff
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication/DocumentFactoryTest.java (original)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/java/org/apache/lenya/cms/publication/DocumentFactoryTest.java Tue Feb 10 22:55:06 2009
@@ -34,7 +34,10 @@
*/
public void testDocumentFactory() throws Exception {
Session session = getSession();
- DocumentFactory factoryA = new DocumentFactoryImpl(session);
+
+ DocumentFactoryBuilder builder = (DocumentFactoryBuilder) getBeanFactory().getBean(DocumentFactoryBuilder.class.getName());
+
+ DocumentFactory factoryA = builder.createDocumentFactory(session);
Publication publication = getSession().getPublication("test");
@@ -42,7 +45,7 @@
Document docA2 = factoryA.get(publication, Publication.AUTHORING_AREA, "/index", "en");
assertSame(docA1, docA2);
- DocumentFactory factoryB = new DocumentFactoryImpl(session);
+ DocumentFactory factoryB = builder.createDocumentFactory(session);
Document docB1 = factoryB.get(publication, Publication.AUTHORING_AREA, "/index", "en");