You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/04/26 16:42:43 UTC
svn commit: r397205 -
/jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
Author: sebb
Date: Wed Apr 26 07:42:41 2006
New Revision: 397205
URL: http://svn.apache.org/viewcvs?rev=397205&view=rev
Log:
Change to add HTTPArgument, as required by HTTPSamplerBase
Modified:
jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
Modified: jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java?rev=397205&r1=397204&r2=397205&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java (original)
+++ jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java Wed Apr 26 07:42:41 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 The Apache Software Foundation.
+ * Copyright 2005,2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,6 +32,7 @@
import junit.framework.TestCase;
import org.apache.jmeter.config.Arguments;
+import org.apache.jmeter.protocol.http.util.HTTPArgument;
public class PostWriterTest extends TestCase {
@@ -116,7 +117,7 @@
* @param httpSampler
* @throws IOException
*/
- private void setupNoFilename(HTTPSampler httpSampler) throws IOException {
+ private void setupNoFilename(HTTPSampler httpSampler) {
httpSampler.setFilename("");
httpSampler.setMimetype("application/octet-stream");
}
@@ -127,7 +128,7 @@
* @param httpSampler
* @throws IOException
*/
- private void setupFilename(HTTPSampler httpSampler) throws IOException {
+ private void setupFilename(HTTPSampler httpSampler) {
// httpSampler.setFilename("test/src/org/apache/jmeter/protocol/http/sampler/foo.txt");
httpSampler.setFilename(temporaryFile.getAbsolutePath());
httpSampler.setMimetype("text/plain");
@@ -139,11 +140,11 @@
* @param httpSampler
* @throws IOException
*/
- private void setupCommons(HTTPSampler httpSampler) throws IOException {
+ private void setupCommons(HTTPSampler httpSampler) {
httpSampler.setFileField("upload");
Arguments args = new Arguments();
- args.addArgument("title", "mytitle");
- args.addArgument("description", "mydescription");
+ args.addArgument(new HTTPArgument("title", "mytitle"));
+ args.addArgument(new HTTPArgument("description", "mydescription"));
httpSampler.setArguments(args);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org