From 793bfe1f846d611d9a54b7222b3f48365a1e5a0c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 15 Jul 2021 14:12:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=90=88=E5=B9=B6pr=20=E4=BF=AE=E5=A4=8DJSONPath?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E4=B8=8D=E7=AD=89=E4=BA=8E=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/apache/jmeter/assertions/JSONPathAssertion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/apache/jmeter/assertions/JSONPathAssertion.java b/backend/src/main/java/org/apache/jmeter/assertions/JSONPathAssertion.java index a7dfa77f90..dcd2823d45 100644 --- a/backend/src/main/java/org/apache/jmeter/assertions/JSONPathAssertion.java +++ b/backend/src/main/java/org/apache/jmeter/assertions/JSONPathAssertion.java @@ -172,7 +172,7 @@ public class JSONPathAssertion extends AbstractTestElement implements Serializab refFlag = str.equals(getExpectedValue()); break; case "NOT_EQUALS": - refFlag = !str.contains(getExpectedValue()); + refFlag = !str.equals(getExpectedValue()); break; } return refFlag;