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 2003/08/12 17:20:21 UTC
cvs commit: cocoon-lenya/src/test/org/apache/lenya/cms/publication DefaultDocumentTest.java
andreas 2003/08/12 08:20:21
Modified: src/test/org/apache/lenya/cms/publication
DefaultDocumentTest.java
Log:
added new TestSet, bugfix
Revision Changes Path
1.4 +4 -2 cocoon-lenya/src/test/org/apache/lenya/cms/publication/DefaultDocumentTest.java
Index: DefaultDocumentTest.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/test/org/apache/lenya/cms/publication/DefaultDocumentTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DefaultDocumentTest.java 30 Jul 2003 15:38:19 -0000 1.3
+++ DefaultDocumentTest.java 12 Aug 2003 15:20:21 -0000 1.4
@@ -99,8 +99,9 @@
}
protected static final DocumentTestSet[] testSets = {
- new DocumentTestSet("/index.html", "/index", Publication.AUTHORING_AREA, "", "html"),
- new DocumentTestSet("/index_en.htm", "/index", Publication.AUTHORING_AREA, "en", "htm")
+ new DocumentTestSet("/index.html", "/index", Publication.AUTHORING_AREA, "en", "html"),
+ new DocumentTestSet("/index_en.htm", "/index", Publication.AUTHORING_AREA, "en", "htm"),
+ new DocumentTestSet("/index_de.html", "/index", Publication.AUTHORING_AREA, "de", "html")
};
/**
@@ -151,6 +152,7 @@
throws DocumentBuildException {
DefaultDocument document = new DefaultDocument(PublicationHelper.getPublication(),
testSet.getId(), testSet.getArea());
+ document.setDocumentURL(testSet.getUrl());
document.setLanguage(testSet.getLanguage());
document.setExtension(testSet.getExtension());
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org