This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 92e39d6  Add options in tests
92e39d6 is described below

commit 92e39d6145b5d6ccbc842bf37b28d7402efed536
Author: pmouawad <[email protected]>
AuthorDate: Wed Oct 2 21:57:35 2019 +0200

    Add options in tests
---
 .../src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
 
b/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
index b4c3f6c..2b3ae8b 100644
--- 
a/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
+++ 
b/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
@@ -333,7 +333,7 @@ public class BasicCurlParserTest {
     }
     @Test
     public void testDataUrlEncodeOneParameterWithName() {
-        String cmdLine = "curl 
'https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit/action_page.php'
 "
+        String cmdLine = "curl -s 
'https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit/action_page.php'
 "
                 + "-H 'cache-control: no-cache' --data-urlencode 'value=é' ";
         BasicCurlParser basicCurlParser = new BasicCurlParser();
         BasicCurlParser.Request request = basicCurlParser.parse(cmdLine);
@@ -343,7 +343,7 @@ public class BasicCurlParserTest {
 
     @Test
     public void testDataUrlEncodeMoreThanOneParameters() {
-        String cmdLine = "curl 'https://postman-echo.com/post' -H 
'Content-Type: application/x-www-form-urlencoded'"
+        String cmdLine = "curl -v 'https://postman-echo.com/post' -H 
'Content-Type: application/x-www-form-urlencoded'"
                 + " -H 'cache-control: no-cache' --data-urlencode 
'foo1=!!!&foo2=???'";
         BasicCurlParser basicCurlParser = new BasicCurlParser();
         BasicCurlParser.Request request = basicCurlParser.parse(cmdLine);

Reply via email to