milamberspace commented on code in PR #6854:
URL: https://github.com/apache/jmeter/pull/6854#discussion_r4650628985


##########
src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/TestHttpQuery.java:
##########
@@ -0,0 +1,90 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jmeter.protocol.http.sampler;
+
+import static com.github.tomakehurst.wiremock.client.WireMock.*;

Review Comment:
   Checkstyle rejects star imports (`AvoidStarImport`), please use explicit 
imports:
   
   ```suggestion
   import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
   import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
   import static com.github.tomakehurst.wiremock.client.WireMock.request;
   import static com.github.tomakehurst.wiremock.client.WireMock.requestedFor;
   import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
   ```
   
   Then `./gradlew autostyleApply` will fix the order of the remaining imports.



##########
xdocs/changes.xml:
##########
@@ -99,6 +99,8 @@ Summary
     <li><pr>6742</pr>Add the <code>HTTP Version</code> combo box (property 
<code>HTTPSampler.httpVersion</code>) to the HTTP Request sampler and the HTTP 
Request Defaults, so the HTTP version can be selected per sampler instead of 
only globally with the <code>httpclient.version</code> property. An empty value 
keeps using that property, which now defaults to <code>HTTP/1.1</code>.</li>
     <li><pr>6742</pr>Send a <code>Host</code> header of the HTTP Header 
Manager without its port when that port is the default one of the URL in the 
<code>HttpClient5</code> sampler implementation, as the 
<code>HttpClient4</code> implementation does.</li>
     <li><pr>6742</pr>Follow automatic redirects to another host in the 
<code>HttpClient5</code> sampler implementation, like the 
<code>HttpClient4</code> implementation does, instead of returning the redirect 
when the request carries cookies or credentials. Each redirect is sent with the 
cookies of the HTTP Cookie Manager and the credentials of the HTTP 
Authorization Manager for its own URL, the cookies the redirects set are kept 
in the Cookie Manager, and a <code>Cookie</code> or <code>Authorization</code> 
header of the HTTP Header Manager is only sent to the host of the initial URL. 
The number of redirects is limited by <code>httpsampler.max_redirects</code>, 
and cookies are only handled by the Cookie Manager, so none are sent without 
one.</li>
+    <li><issue>6743</issue><pr>6854</pr>Add <code>QUERY</code> to the list of 
HTTP Request methods</li>. If <code>httpsampler.user_defined_methods</code> 
already contains
+    <code>QUERY</code>, it will appear twice in the method list.

Review Comment:
   The `</li>` closes the item mid-sentence, so the second sentence ends up 
directly inside the `<ul>`:
   
   ```suggestion
       <li><issue>6743</issue><pr>6854</pr>Add <code>QUERY</code> to the list 
of HTTP Request methods. If <code>httpsampler.user_defined_methods</code> 
already contains
       <code>QUERY</code>, it will appear twice in the method list.</li>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to