-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ShamrockUnitTest not Windows friendly #479
Conversation
URL resource = testClass.getClassLoader().getResource(classFileName); | ||
|
||
String path = resource.getPath(); | ||
try { | ||
Path path = Paths.get(resource.toURI()); |
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.
What is the rationale behind not using getPath()
anymore?
Also, it seems there are some indentation issues: we indent with 4 spaces.
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.
The rationale is that the Path API provides a way to transform an URL(URI) to a file system path where we were trying do do it with string manipulations which was erroneous on Windows.
CI fails with the following error:
|
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
See #478
Signed-off-by: Jeff MAURY jmaury@redhat.com