-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for passing line and column number to ConsoleLauncher via --select-file
and --select-resource
#4044
Add support for passing line and column number to ConsoleLauncher via --select-file
and --select-resource
#4044
Conversation
@@ -109,4 +120,12 @@ public DiscoverySelectorIdentifier convert(String value) { | |||
} | |||
} | |||
|
|||
private static URI stripQueryComponent(URI uri) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is a duplicate of the one in org.junit.platform.engine.support.descriptor.ResourceUtils
, but I don't think there is a way of using the same in both places, is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we made ResourceUtils
and the method public, we could reuse it. I think it would be slightly better regarding consistenct to move it to the org.junit.platform.commons.util
package, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! 👍
@@ -109,4 +120,12 @@ public DiscoverySelectorIdentifier convert(String value) { | |||
} | |||
} | |||
|
|||
private static URI stripQueryComponent(URI uri) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we made ResourceUtils
and the method public, we could reuse it. I think it would be slightly better regarding consistenct to move it to the org.junit.platform.commons.util
package, though.
junit-platform-commons/src/main/java/org/junit/platform/commons/util/ResourceUtils.java
Outdated
Show resolved
Hide resolved
junit-platform-commons/src/main/java/org/junit/platform/commons/util/ResourceUtils.java
Outdated
Show resolved
Hide resolved
junit-platform-commons/src/main/java/org/junit/platform/commons/util/ResourceUtils.java
Outdated
Show resolved
Hide resolved
… `--select-file` and `--select-resource`
f1bef61
to
a16ac63
Compare
a16ac63
to
7d2ed6d
Compare
Overview
Resolves #3483
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations