FSchumacher commented on PR #5812:
URL: https://github.com/apache/jmeter/pull/5812#issuecomment-1518619789

   > > Looks good to me.
   > > Why did you place the parametrized test in its own test class?
   > 
   > Copy/paste from the class "TestSampleCompareTo", what is the best way?
   
   Is there ever a best way? But that said, I would have kept the tests in the 
`RequestViewHTTPTest` class, that contains the other tests.
   
   > 
   > > Instead of re-opening a new PR for each round, you could have pushed to 
the first PR you opened. That way, the comments on the PR would have been 
together in one PR.
   > 
   > Because I try to play with git rebase without success for merge some 
commit.
   
   You can push without rebasing. That way, the path the commits have taken can 
be followed.
   But I like to rebase, too :) So what did not work?
   
   > 
   > > Not really related to this PR: Line 305 (new counting) in the old code 
is weird. `paramSplit.length` will never be `1`, if there is an `=` sign in the 
splitted param and it is not the sole char of that param.
   > 
   > paramSplit.length can have value 1 in special case "=value" (no name). 
This is why my unit test number 3 works (name is init to " ".
   
   In that case, my jshell is giving me the following:
   ```console
   jshell> "=value".split("=")
   $1 ==> String[2] {"", "name"}
   ```
   So `length` is `2` and not `1`. I can't think of a case, where `param` 
starts with an `=` char and splits to an array of length one.
   Case number three works, because we check for a `null` name and skip 
decoding that `null` name, not because of the check in line 305 is true.
   


-- 
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: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to