You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2019/08/03 12:55:12 UTC

[jmeter] branch master updated: Spacepolice

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


The following commit(s) were added to refs/heads/master by this push:
     new 17fc0d3  Spacepolice
17fc0d3 is described below

commit 17fc0d3207c01666dbb870cf6c8c6aee7c280911
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sat Aug 3 14:54:46 2019 +0200

    Spacepolice
---
 .../jmeter/protocol/http/sampler/SamplingNamingTest.java   | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

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 d01fefc..10ed255 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
@@ -52,17 +52,19 @@ public class SamplingNamingTest extends JMeterTestCase implements JMeterSerialTe
     public void testBug63364() {
         TestPlan plan = new TestPlan();
         SampleResult[] subResults = doSample(implementation);
-        Assert.assertTrue("We should have at least one sample result, we had none",subResults.length>0);
+        Assert.assertTrue("We should have at least one sample result, we had none", subResults.length > 0);
         for (int i = 0; i < subResults.length; i++) {
-            assertEquals("Expected sample label to be "+LABEL+"-"+i, LABEL+"-"+i, subResults[i].getSampleLabel());
+            assertEquals("Expected sample label to be " + LABEL + "-" + i, LABEL + "-" + i,
+                    subResults[i].getSampleLabel());
         }
         final boolean prevValue = TestPlan.getFunctionalMode();
         plan.setFunctionalMode(true);
         try {
             subResults = doSample(implementation);
-            Assert.assertTrue("We should have at least one sample result, we had none",subResults.length>0);
+            Assert.assertTrue("We should have at least one sample result, we had none", subResults.length > 0);
             for (int i = 0; i < subResults.length; i++) {
-                Assert.assertTrue("Expected sample label to start with "+JMETER_HOME_PAGE, subResults[i].getSampleLabel().startsWith(JMETER_HOME_PAGE));
+                Assert.assertTrue("Expected sample label to start with " + JMETER_HOME_PAGE,
+                        subResults[i].getSampleLabel().startsWith(JMETER_HOME_PAGE));
             }
         } finally {
             plan.setFunctionalMode(prevValue);
@@ -83,9 +85,9 @@ public class SamplingNamingTest extends JMeterTestCase implements JMeterSerialTe
         httpSamplerProxy.setMethod("GET");
         httpSamplerProxy.setPath(JMETER_HOME_PAGE);
         // We intentionally keep only resources which start with JMETER_HOME_PAGE
-        httpSamplerProxy.setEmbeddedUrlRE(JMETER_HOME_PAGE+".*");
+        httpSamplerProxy.setEmbeddedUrlRE(JMETER_HOME_PAGE + ".*");
         SampleResult result = httpSamplerProxy.sample();
-        assertEquals("Expected sample label to be "+LABEL, LABEL, result.getSampleLabel());
+        assertEquals("Expected sample label to be " + LABEL, LABEL, result.getSampleLabel());
         return result.getSubResults();
     }
 }