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

vladimirsitnikov 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 6027c3bf42 test: remove excessive static modifiers from test methods
6027c3bf42 is described below

commit 6027c3bf42f7b89ff35ac8a67d8b928b7da27d57
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Fri Nov 7 23:43:40 2025 +0300

    test: remove excessive static modifiers from test methods
---
 .../protocol/http/proxy/TestHttpRequestHdr.java    | 10 ++++-----
 .../TestHTTPSamplersAgainstHttpMirrorServer.java   | 26 +++++++++++-----------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git 
a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
 
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
index 62479a957c..0fad025672 100644
--- 
a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
+++ 
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
@@ -196,19 +196,19 @@ public class TestHttpRequestHdr extends JMeterTestCase {
     }
 
     @Test
-    public static void testEncodedArguments() throws Exception {
+    public void testEncodedArguments() throws Exception {
         String url = "http://localhost/matrix.html";;
         testEncodedArguments(url);
     }
 
 
     @Test
-    public static void testEncodedArgumentsIPv6() throws Exception {
+    public void testEncodedArgumentsIPv6() throws Exception {
         String url = "http://[::1]:8080/matrix.html";;
         testEncodedArguments(url);
     }
 
-    private static void testEncodedArguments(String url) throws Exception {
+    private void testEncodedArguments(String url) throws Exception {
         // A HTTP GET request, with encoding not known
         String contentEncoding = "";
         String queryString = "abc%3FSPACE=a+b&space=a%20b&query=What%3F";
@@ -309,12 +309,12 @@ public class TestHttpRequestHdr extends JMeterTestCase {
     }
 
     @Test
-    public static void testGetRequestEncodings() throws Exception {
+    public void testGetRequestEncodings() throws Exception {
         testGetRequestEncodings("http://localhost/matrix.html";);
     }
 
     @Test
-    public static void testGetRequestEncodingsIPv6() throws Exception {
+    public void testGetRequestEncodingsIPv6() throws Exception {
         testGetRequestEncodings("http://[::1]:8080/matrix.html";);
     }
 
diff --git 
a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
 
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
index 2da7085c15..c777afa242 100644
--- 
a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
+++ 
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
@@ -109,72 +109,72 @@ public class TestHTTPSamplersAgainstHttpMirrorServer 
extends JMeterTestCase {
 
     @ParameterizedTest
     @ValueSource(ints = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
-    public static void itemised_testPostRequest_UrlEncoded(int item) throws 
Exception {
+    public void itemised_testPostRequest_UrlEncoded(int item) throws Exception 
{
         testPostRequest_UrlEncoded(HTTP_SAMPLER, ISO_8859_1, item);
     }
 
     @ParameterizedTest
     @ValueSource(ints = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
-    public static void itemised_testPostRequest_UrlEncoded3(int item) throws 
Exception {
+    public void itemised_testPostRequest_UrlEncoded3(int item) throws 
Exception {
         testPostRequest_UrlEncoded(HTTP_SAMPLER3, US_ASCII, item);
     }
 
     @Test
-    public static void testPostRequest_FormMultipart_0() throws Exception {
+    public void testPostRequest_FormMultipart_0() throws Exception {
         testPostRequest_FormMultipart(HTTP_SAMPLER);
     }
 
     @Test
-    public static void testPostRequest_FormMultipart3() throws Exception {
+    public void testPostRequest_FormMultipart3() throws Exception {
         // see https://issues.apache.org/jira/browse/HTTPCLIENT-1665
         testPostRequest_FormMultipart(HTTP_SAMPLER3);
     }
 
     @Test
-    public static void testPostRequest_FileUpload() throws Exception {
+    public void testPostRequest_FileUpload() throws Exception {
         testPostRequest_FileUpload(HTTP_SAMPLER);
     }
 
     @Test
-    public static void testPostRequest_FileUpload3() throws Exception {
+    public void testPostRequest_FileUpload3() throws Exception {
         // see https://issues.apache.org/jira/browse/HTTPCLIENT-1665
         testPostRequest_FileUpload(HTTP_SAMPLER3);
     }
 
     @Test
-    public static void testPostRequest_BodyFromParameterValues() throws 
Exception {
+    public void testPostRequest_BodyFromParameterValues() throws Exception {
         testPostRequest_BodyFromParameterValues(HTTP_SAMPLER, ISO_8859_1);
     }
 
     @Test
-    public static void testPostRequest_BodyFromParameterValues3() throws 
Exception {
+    public void testPostRequest_BodyFromParameterValues3() throws Exception {
         testPostRequest_BodyFromParameterValues(HTTP_SAMPLER3, US_ASCII);
     }
 
     @Test
-    public static void testGetRequest() throws Exception {
+    public void testGetRequest() throws Exception {
         testGetRequest(HTTP_SAMPLER);
     }
 
     @Test
-    public static void testGetRequest3() throws Exception {
+    public void testGetRequest3() throws Exception {
         testGetRequest(HTTP_SAMPLER3);
     }
 
     @ParameterizedTest
     @ValueSource(ints = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
-    public static void itemised_testGetRequest_Parameters(int item) throws 
Exception {
+    public void itemised_testGetRequest_Parameters(int item) throws Exception {
         testGetRequest_Parameters(HTTP_SAMPLER, item);
     }
 
     @ParameterizedTest
     @ValueSource(ints = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
-    public static void itemised_testGetRequest_Parameters3(int item) throws 
Exception {
+    public void itemised_testGetRequest_Parameters3(int item) throws Exception 
{
         testGetRequest_Parameters(HTTP_SAMPLER3, item);
     }
 
     @Test
-    public static void testPutRequest_BodyFromParameterValues3() throws 
Exception {
+    public void testPutRequest_BodyFromParameterValues3() throws Exception {
         testPutRequest_BodyFromParameterValues(HTTP_SAMPLER3, US_ASCII);
     }
 

Reply via email to