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 2016/12/27 17:41:57 UTC

svn commit: r1776181 - /jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java

Author: fschumacher
Date: Tue Dec 27 17:41:57 2016
New Revision: 1776181

URL: http://svn.apache.org/viewvc?rev=1776181&view=rev
Log:
Use assert function instead of java comparison in test case.

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java?rev=1776181&r1=1776180&r2=1776181&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java Tue Dec 27 17:41:57 2016
@@ -20,6 +20,7 @@ package org.apache.jmeter.samplers;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
@@ -124,7 +125,7 @@ public class TestSampleResult {
             res.samplePause();
             assertEquals(0, wr.toString().length());
             res.samplePause();
-            assertFalse(wr.toString().length() == 0);
+            assertNotEquals(0, wr.toString().length());
         }
 
         @Test
@@ -135,7 +136,7 @@ public class TestSampleResult {
             res.samplePause();
             assertEquals(0, wr.toString().length());
             res.samplePause();
-            assertFalse(wr.toString().length() == 0);
+            assertNotEquals(0, wr.toString().length());
         }
         
         @Test