You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2003/08/08 16:17:15 UTC
cvs commit: cocoon-lenya/src/test/org/apache/lenya/cms/task PublisherTest.java
egli 2003/08/08 07:17:15
Modified: src/test/org/apache/lenya/cms/task PublisherTest.java
Log:
Added Javadocs.
Revision Changes Path
1.4 +18 -3 cocoon-lenya/src/test/org/apache/lenya/cms/task/PublisherTest.java
Index: PublisherTest.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/test/org/apache/lenya/cms/task/PublisherTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PublisherTest.java 30 Jun 2003 11:53:52 -0000 1.3
+++ PublisherTest.java 8 Aug 2003 14:17:15 -0000 1.4
@@ -71,12 +71,13 @@
/**
* @author andreas
*
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
*/
public class PublisherTest extends AntTaskTest {
+
/**
- * @param test
+ * Create a test.
+ *
+ * @param test the test
*/
public PublisherTest(String test) {
super(test);
@@ -84,6 +85,8 @@
/**
* Creates a test suite.
+ *
+ * @return a test
*/
public static Test getSuite() {
return new TestSuite(PublisherTest.class);
@@ -102,6 +105,10 @@
public static final String DOCUMENT_ID = "tutorial";
public static final String LIVE_PATH = "content/live/".replace('/', File.separatorChar);
+ /**
+ * (non-Javadoc)
+ * @see org.apache.lenya.cms.task.AntTaskTest#evaluateTest()
+ */
protected void evaluateTest() throws IOException {
File publicationDirectory = PublicationHelper.getPublication().getDirectory();
String livePath = LIVE_PATH + DOCUMENT_ID + File.separator + "index.xml";
@@ -111,6 +118,10 @@
System.out.println("Published file exists: " + publishedFile.getCanonicalPath());
}
+ /**
+ * (non-Javadoc)
+ * @see org.apache.lenya.cms.task.AntTaskTest#getTaskParameters()
+ */
protected Parameters getTaskParameters() {
Parameters parameters = super.getTaskParameters();
parameters.setParameter("properties.publish.documentid", DOCUMENT_ID);
@@ -120,6 +131,10 @@
return parameters;
}
+ /**
+ * (non-Javadoc)
+ * @see org.apache.lenya.cms.task.AntTaskTest#getTarget()
+ */
protected String getTarget() {
return "publish";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org