junit5 icon indicating copy to clipboard operation
junit5 copied to clipboard

Add withPosition() factory method to FileSource

Open lslonina opened this issue 10 months ago • 3 comments

  • Refactor creation to avoid redundant canonicalization calls
  • Introduced internal factory methods for clearer construction paths

Overview


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

lslonina avatar Jun 06 '25 08:06 lslonina

I'm not sure why my review got posted twice. I've hidden one, but now they're both hidden. :confused:

mpkorstanje avatar Jun 06 '25 10:06 mpkorstanje

how to add?

ALUMINIS650 avatar Jun 06 '25 10:06 ALUMINIS650

@mpkorstanje Thanks for the feedback — the code can definitely be simplified, especially with the instance method approach. Let’s see how the discussion on this topic evolves; I’ll keep this marked as a draft for now.

lslonina avatar Jun 06 '25 10:06 lslonina

@mpkorstanje Thanks for the feedback — the code can definitely be simplified, especially with the instance method approach. Let’s see how the discussion on this topic evolves; I’ll keep this marked as a draft for now.

@lslonina the issue has moved off team discussion. Do you have time available to patch up your PR or would you prefer to hand it over?

mpkorstanje avatar Sep 11 '25 17:09 mpkorstanje

Thanks for picking this up. I’ve added @API(status = EXPERIMENTAL, since = "6.0"), but if this is a backport candidate, should we change it to since = "5.13.5" instead?

lslonina avatar Sep 11 '25 19:09 lslonina

Thanks for picking this up. I’ve added @API(status = EXPERIMENTAL, since = "6.0"), but if this is a backport candidate, should we change it to since = "5.13.5" instead?

Good question! Please keep using 6.0. We'll adjust it when backporting.

marcphilipp avatar Sep 12 '25 13:09 marcphilipp

@lslonina Are you going to finish this PR or is @mpkorstanje taking over?

marcphilipp avatar Sep 12 '25 13:09 marcphilipp

Thanks, @lslonina! :+1:

marcphilipp avatar Sep 13 '25 09:09 marcphilipp