jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 01/02: Remove public from juputer test classes
Date Fri, 17 Sep 2021 15:02:23 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 180f58f8592d79cefd71733437ca4d9e00075323
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Thu Sep 16 17:53:31 2021 +0200

    Remove public from juputer test classes
    
    Follow-up to 6b07256c05b57146bdab61d2f3ff84acfa262d16 and
    7174d53e84eb2b75fca11e8d4ce77f51cde17d39
    
    Convert test to jupiter (JUnit 5)
    
    Try to get rid of all old junit 4 style tests by converting them.
---
 .../org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java    | 2 +-
 .../apache/jmeter/extractor/json/jmespath/TestJMESPathExtractor.java    | 2 +-
 .../test/java/org/apache/jmeter/visualizers/TestSampleCompareTo.java    | 2 +-
 .../java/org/apache/jmeter/samplers/TestDataStrippingSampleSender.java  | 2 +-
 .../src/test/java/org/apache/jorphan/gui/MinMaxLongRendererTest.java    | 2 +-
 .../org/apache/jmeter/protocol/http/parser/TestBug60842HtmlParser.java  | 2 +-
 .../org/apache/jmeter/protocol/http/sampler/SamplingNamingTest.java     | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
b/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
index 3e9959d..41a5ee1 100644
--- a/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
+++ b/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
@@ -28,7 +28,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-public class TestJMESPathAssertion {
+class TestJMESPathAssertion {
     private enum InvertType {
         USE_NO_INVERT, USE_INVERT
     }
diff --git a/src/components/src/test/java/org/apache/jmeter/extractor/json/jmespath/TestJMESPathExtractor.java
b/src/components/src/test/java/org/apache/jmeter/extractor/json/jmespath/TestJMESPathExtractor.java
index 5008462..008f18d 100644
--- a/src/components/src/test/java/org/apache/jmeter/extractor/json/jmespath/TestJMESPathExtractor.java
+++ b/src/components/src/test/java/org/apache/jmeter/extractor/json/jmespath/TestJMESPathExtractor.java
@@ -34,7 +34,7 @@ import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 import org.junit.runners.Parameterized.Parameters;
 
-public class TestJMESPathExtractor {
+class TestJMESPathExtractor {
     private static final String DEFAULT_VALUE = "NONE"; // $NON-NLS-1$
     private static final String REFERENCE_NAME = "varname"; // $NON-NLS-1$
     private static final String REFERENCE_NAME_MATCH_NUMBER = "varname_matchNr"; // $NON-NLS-1$
diff --git a/src/components/src/test/java/org/apache/jmeter/visualizers/TestSampleCompareTo.java
b/src/components/src/test/java/org/apache/jmeter/visualizers/TestSampleCompareTo.java
index 38ea2aa..586aca9 100644
--- a/src/components/src/test/java/org/apache/jmeter/visualizers/TestSampleCompareTo.java
+++ b/src/components/src/test/java/org/apache/jmeter/visualizers/TestSampleCompareTo.java
@@ -26,7 +26,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-public class TestSampleCompareTo {
+class TestSampleCompareTo {
 
     private static Stream<Arguments> data() {
         return Stream.of(
diff --git a/src/core/src/test/java/org/apache/jmeter/samplers/TestDataStrippingSampleSender.java
b/src/core/src/test/java/org/apache/jmeter/samplers/TestDataStrippingSampleSender.java
index b605ca2..cac17a5 100644
--- a/src/core/src/test/java/org/apache/jmeter/samplers/TestDataStrippingSampleSender.java
+++ b/src/core/src/test/java/org/apache/jmeter/samplers/TestDataStrippingSampleSender.java
@@ -35,7 +35,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-public class TestDataStrippingSampleSender extends JMeterTestCase implements JMeterSerialTest
{
+class TestDataStrippingSampleSender extends JMeterTestCase implements JMeterSerialTest {
 
     private static final String TEST_CONTENT = "Something important";
 
diff --git a/src/jorphan/src/test/java/org/apache/jorphan/gui/MinMaxLongRendererTest.java
b/src/jorphan/src/test/java/org/apache/jorphan/gui/MinMaxLongRendererTest.java
index 16c2eae..0e92b30 100644
--- a/src/jorphan/src/test/java/org/apache/jorphan/gui/MinMaxLongRendererTest.java
+++ b/src/jorphan/src/test/java/org/apache/jorphan/gui/MinMaxLongRendererTest.java
@@ -26,7 +26,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-public class MinMaxLongRendererTest {
+class MinMaxLongRendererTest {
 
     private static Stream<Arguments> data() {
         return Stream.of(
diff --git a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/parser/TestBug60842HtmlParser.java
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/parser/TestBug60842HtmlParser.java
index 45ba51f..9eb008d 100644
--- a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/parser/TestBug60842HtmlParser.java
+++ b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/parser/TestBug60842HtmlParser.java
@@ -34,7 +34,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-public class TestBug60842HtmlParser {
+class TestBug60842HtmlParser {
 
     private static Stream<Arguments> params() {
         List<String[]> snippets = Arrays.asList(
diff --git a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/SamplingNamingTest.java
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/SamplingNamingTest.java
index ea8f020..f82da5a 100644
--- a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/SamplingNamingTest.java
+++ b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/sampler/SamplingNamingTest.java
@@ -31,7 +31,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-public class SamplingNamingTest extends JMeterTestCase implements JMeterSerialTest {
+class SamplingNamingTest extends JMeterTestCase implements JMeterSerialTest {
     private static final String JMETER_HOME_PAGE = "https://jmeter.apache.org";
     private static final String LABEL = "JMeter-HP";
 

Mime
View raw message