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 16:53:27 UTC
svn commit: r1776173 -
/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
Author: fschumacher
Date: Tue Dec 27 16:53:26 2016
New Revision: 1776173
URL: http://svn.apache.org/viewvc?rev=1776173&view=rev
Log:
Use explicit junit method instead of boolean expression inside assertTrue
Modified:
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java?rev=1776173&r1=1776172&r2=1776173&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java Tue Dec 27 16:53:26 2016
@@ -19,6 +19,7 @@
package org.apache.jmeter.protocol.http.modifier;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
@@ -265,7 +266,7 @@ public class TestAnchorModifier extends
jmctx.setPreviousResult(result);
parser.process();
String newUrl = config.getUrl().toString();
- assertTrue(!"http://www.apache.org/home/index.html?param1=value1".equals(newUrl));
+ assertNotEquals("http://www.apache.org/home/index.html?param1=value1", newUrl);
assertEquals(config.getUrl().toString(), newUrl);
}