juergen 02/02/14 01:16:40
Modified:
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
the url may contain xml specific characters, so encode the url before printing it to
XML output stream.
Revision Changes Path
1.7 +6 -6
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java
Index: TProcessors.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TProcessors.java 6 Feb 2002 16:53:27 -0000 1.6
+++ TProcessors.java 14 Feb 2002 09:16:40 -0000 1.7
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
1.6 2002/02/06 16:53:27 juergen Exp $
- * $Revision: 1.6 $
- * $Date: 2002/02/06 16:53:27 $
+ * $Header:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
1.7 2002/02/14 09:16:40 juergen Exp $
+ * $Revision: 1.7 $
+ * $Date: 2002/02/14 09:16:40 $
*
* ====================================================================
*
@@ -71,6 +71,7 @@
import org.apache.webdav.lib.*;
import org.apache.webdav.lib.methods.*;
import org.apache.util.WebdavStatus;
+import org.apache.slide.webdav.WebdavUtils;
// jdom
import org.jdom.*;
import org.jdom.input.*;
@@ -83,7 +84,7 @@
* Main class to performe a test case and check and report the results
*
* @author Software AG
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class TProcessors {
@@ -509,9 +510,8 @@
return false;
}
-
xmlresult.writeElement("method", method.getName());
- xmlresult.writeElement("url", method.getPath());
+ xmlresult.writeElement("url",
WebdavUtils.encodeURL(method.getPath(),"UTF-8"));
client.executeMethod(method);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>