ham1 opened a new pull request, #6873:
URL: https://github.com/apache/jmeter/pull/6873

   While writing the tests in #6872 I found four small bugs.
   Each commit fixes one, with a regression test that fails without the fix.
   
   **Response Assertion failure message loses the test type when `Or` is on**
   `getFailText` switched on the raw test type, which includes the `OR` bit, so 
only the "should never happen" default matched.
   The message read `Test failed: text expected something using /x/` instead of 
`Test failed: text expected to contain /x/`.
   
   **Equal `HashTree`s could have different `hashCode`s**
   `xor = xor + key ^ value` is parsed as `(xor + key) ^ value`, so the result 
depended on the map's iteration order.
   A tree that had keys added and then removed keeps a bigger table and 
iterates in a different order, so it could hash differently from an equal tree.
   That breaks the `equals`/`hashCode` contract.
   It now uses `xor ^= key ^ value`, which does not depend on order.
   Saving test plans is not affected: the XStream converter does not use 
`hashCode`, and no main code keys a `Map` or `Set` on a `HashTree`.
   
   **Charset with a missing closing quote in `Content-Type`**
   `charset="utf-8` (no closing quote) gave `utf-`, because the last character 
was always removed.
   A value of only `"` threw `StringIndexOutOfBoundsException`.
   The closing quote is now only removed when it is there.
   
   **Boundary Extractor Match No. above 1 with an empty boundary**
   An empty left or right boundary gives at most one match.
   With Match No. 2 or more, sample scope already used the default value, but 
variable scope returned the single match.
   Both scopes now use the default value.
   A test plan that relied on the old variable scope behaviour could now get 
the default value instead, so this is noted in changes.xml.
   
   `./gradlew style` and the tests of the changed modules pass locally.
   
   Generated-by: claude-opus-5-5
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to