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 ca8eabf03a20f4b6437ad6271d4ca83022e4a62c
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sat Sep 28 21:17:07 2019 +0200
Change order of expected/actual in assertion
The assert methods use the first parameter for the expected and the
second parameter for the actual value.
---
.../apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
b/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
index 6e44b85..de06969 100644
--- a/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
+++ b/src/components/src/test/java/org/apache/jmeter/assertions/jmespath/TestJMESPathAssertion.java
@@ -187,11 +187,11 @@ public class TestJMESPathAssertion {
AssertionResult result = instance.getResult(samplerResult);
assertEquals(expResult.getName(), result.getName());
if (result.isError() && !result.isFailure()) {
- assertEquals(resultType, ResultType.ERROR);
+ assertEquals(ResultType.ERROR, resultType);
} else if (result.isFailure() && !result.isError()) {
- assertEquals(resultType, ResultType.FAILURE);
+ assertEquals(ResultType.FAILURE, resultType);
} else if (!result.isError() && !result.isFailure()){
- assertEquals(resultType, ResultType.SUCCESS);
+ assertEquals(ResultType.SUCCESS, resultType);
} else {
fail("Got unexpected state where AssertionResult is in error and in failure");
}
|