jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 03/04: Remove unused arguments from private method
Date Sat, 28 Sep 2019 10:18:40 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 c6f6ff1a1ada0d0c0759c9159a0ad8b43e2ffae4
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sat Sep 28 11:53:59 2019 +0200

    Remove unused arguments from private method
---
 .../java/org/apache/jmeter/assertions/jmespath/JMESPathAssertion.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/src/main/java/org/apache/jmeter/assertions/jmespath/JMESPathAssertion.java
b/src/components/src/main/java/org/apache/jmeter/assertions/jmespath/JMESPathAssertion.java
index 4cda1ca..6fde83f 100644
--- a/src/components/src/main/java/org/apache/jmeter/assertions/jmespath/JMESPathAssertion.java
+++ b/src/components/src/main/java/org/apache/jmeter/assertions/jmespath/JMESPathAssertion.java
@@ -78,7 +78,7 @@ public class JMESPathAssertion extends AbstractTestElement implements Serializab
         JsonNode currentValue = expression.search(input);
         log.debug("JMESPath query {} invoked on response {}. Query result is {}. ", expression,
                 responseDataAsJsonString, currentValue);
-        boolean success = checkResult(OBJECT_MAPPER, currentValue, assertionResult, invert);
+        boolean success = checkResult(OBJECT_MAPPER, currentValue);
         if (!invert) {
             if (!success) {
                 failAssertion(invert, assertionResult);
@@ -125,7 +125,7 @@ public class JMESPathAssertion extends AbstractTestElement implements
Serializab
         }
     }
 
-    private boolean checkResult(ObjectMapper mapper, JsonNode jsonNode, AssertionResult result,
boolean invert)
+    private boolean checkResult(ObjectMapper mapper, JsonNode jsonNode)
             throws JsonProcessingException {
         if (!isJsonValidationBool()) {
             return !(jsonNode instanceof NullNode);


Mime
View raw message