jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1807786 - in /jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler: BinaryTCPClientImplTest.java LengthPrefixedBinaryTCPClientImplTest.java
Date Fri, 08 Sep 2017 17:03:16 GMT
Author: pmouawad
Date: Fri Sep  8 17:03:16 2017
New Revision: 1807786

URL: http://svn.apache.org/viewvc?rev=1807786&view=rev
Log:
Bug 60156 - TCPSampler : Latency is not measured for TCP Sampler
Contributed by UbikLoadPack
Oups forgot to commit tests
Bugzilla Id: 60156

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/BinaryTCPClientImplTest.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/LengthPrefixedBinaryTCPClientImplTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/BinaryTCPClientImplTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/BinaryTCPClientImplTest.java?rev=1807786&r1=1807785&r2=1807786&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/BinaryTCPClientImplTest.java
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/BinaryTCPClientImplTest.java
Fri Sep  8 17:03:16 2017
@@ -28,6 +28,8 @@ import static org.junit.Assert.fail;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.InputStream;
+
+import org.apache.jmeter.samplers.SampleResult;
 import org.apache.jorphan.util.JOrphanUtils;
 import org.junit.Test;
 
@@ -85,6 +87,6 @@ public class BinaryTCPClientImplTest {
         os.close();
         assertEquals("12345",os.toString("ISO-8859-1"));
         ByteArrayInputStream bis = new ByteArrayInputStream(os.toByteArray());
-        assertEquals("3132333435",bi.read(bis));
+        assertEquals("3132333435",bi.read(bis, new SampleResult()));
     }
 }

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/LengthPrefixedBinaryTCPClientImplTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/LengthPrefixedBinaryTCPClientImplTest.java?rev=1807786&r1=1807785&r2=1807786&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/LengthPrefixedBinaryTCPClientImplTest.java
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/tcp/sampler/LengthPrefixedBinaryTCPClientImplTest.java
Fri Sep  8 17:03:16 2017
@@ -27,6 +27,8 @@ import static org.junit.Assert.fail;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
+
+import org.apache.jmeter.samplers.SampleResult;
 import org.junit.Test;
 
 public class LengthPrefixedBinaryTCPClientImplTest {
@@ -53,7 +55,7 @@ public class LengthPrefixedBinaryTCPClie
         final byte[] byteArray = os.toByteArray();
         assertEquals(2+(DATA.length()/2), byteArray.length);
         ByteArrayInputStream is = new ByteArrayInputStream(byteArray);
-        assertEquals(DATA, lp.read(is));
+        assertEquals(DATA, lp.read(is, new SampleResult()));
     }
 
 }



Mime
View raw message