juergen 02/02/28 05:35:03
Modified:
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
only the PUT method has a sendData() all others supply setQuery only.
Revision Changes Path
1.12 +9 -5
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.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- TProcessors.java 26 Feb 2002 18:29:21 -0000 1.11
+++ TProcessors.java 28 Feb 2002 13:35:02 -0000 1.12
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
1.11 2002/02/26 18:29:21 juergen Exp $
- * $Revision: 1.11 $
- * $Date: 2002/02/26 18:29:21 $
+ * $Header:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
1.12 2002/02/28 13:35:02 juergen Exp $
+ * $Revision: 1.12 $
+ * $Date: 2002/02/28 13:35:02 $
*
* ====================================================================
*
@@ -84,7 +84,7 @@
* Main class to performe a test case and check and report the results
*
* @author Software AG
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*/
public class TProcessors {
@@ -794,7 +794,11 @@
try {
byte[] input =
replaceKnownVariable(element).getBytes(getFileEncoding(element));
method.setHeader("Content-Length", ""+input.length);
- ((PutMethod)method).sendData(input);
+ if (method instanceof PutMethod) {
+ ((PutMethod)method).sendData(input);
+ } else {
+ method.setQuery(new String(input)); // we lost the encoding
here!!!!
+ }
}
catch (UnsupportedEncodingException e) { throw new
Exception(e.toString());}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>