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 19:07:03 UTC
cvs commit: cocoon-lenya/src/test/org/apache/lenya/cms/task AntTaskTest.java
egli 2003/08/08 10:07:03
Modified: src/test/org/apache/lenya/cms/task AntTaskTest.java
Log:
Fixed Javadocs.
Revision Changes Path
1.16 +17 -8 cocoon-lenya/src/test/org/apache/lenya/cms/task/AntTaskTest.java
Index: AntTaskTest.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/test/org/apache/lenya/cms/task/AntTaskTest.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- AntTaskTest.java 10 Jul 2003 16:53:43 -0000 1.15
+++ AntTaskTest.java 8 Aug 2003 17:07:03 -0000 1.16
@@ -90,6 +90,8 @@
/**
* Creates a new AntTaskTest object.
+ *
+ * @param test the test
*/
public AntTaskTest(String test) {
super(test);
@@ -120,6 +122,8 @@
/**
* Creates a test suite.
+ *
+ * @return the test suite
*/
public static Test getSuite() {
return new TestSuite(AntTaskTest.class);
@@ -128,6 +132,8 @@
/**
* Tests the AntTask class.
* Template method, please override {@link #evaluateTest()} and {@link #getTarget()} and {@link #prepareTest()}.
+ *
+ * @throws Exception if an error occurs
*/
public final void testAntTask() throws Exception {
prepareTest();
@@ -145,10 +151,13 @@
/**
* Tests an AntTask.
- * @param taskId The ID of the task to test.
- * @throws ExecutionException
- * @throws IOException
- * @throws ParameterException
+ * @param target the target of the task to test.
+ *
+ * @throws ExecutionException if an error occurs
+ * @throws IOException if an error occurs
+ * @throws ParameterException if an error occurs
+ * @throws SAXException if an error occurs
+ * @throws ConfigurationException if an error occurs
*/
protected void doTest(String target) throws ExecutionException, ParameterException, ConfigurationException, SAXException, IOException {
System.out.println("Testing target [" + target + "]:");
@@ -192,7 +201,7 @@
/**
* Override this method to prepare your test.
- * @throws Exception
+ * @throws Exception if an error occurs
*/
protected void prepareTest() throws Exception {
System.out.println("prepare");
@@ -200,19 +209,19 @@
/**
* Override this method to add your test evaluation code.
- * @throws Exception
+ * @throws Exception if an error occurs
*/
protected void evaluateTest() throws Exception {
System.out.println("evaluate");
}
- /* (non-Javadoc)
+ /** (non-Javadoc)
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
if (PublicationHelper.getPublication() == null) {
String[] args = {
- "/home/edith/build/jakarta-tomcat-4.1.21-LE-jdk14/webapps/lenya", "test"
+ "/home/egli/build/jakarta-tomcat-4.1.21-LE-jdk14/webapps/lenya", "test"
};
PublicationHelper.extractPublicationArguments(args);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org