Skip to content
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

review test: fix maven launcher test to find path using File separator #2129

Merged
merged 2 commits into from
Jun 28, 2018

Conversation

surli
Copy link
Collaborator

@surli surli commented Jun 28, 2018

No description provided.

@surli surli changed the title Fix maven launcher test to find path using File separator test: fix maven launcher test to find path using File separator Jun 28, 2018
String lookingFor = "junit/junit/4.12/junit-4.12.jar";

String fileSep = File.separator;
String lookingFor = "junit" + fileSep + "junit" + fileSep + "4.12" + fileSep + "junit-4.12.jar";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is much nicer to use:

Paths.get("junit", "junit", "4.12", "junit-4.12.jar")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I did that quickly and I did not really check how to do it properly ;) I'll fix it, thanks!

@surli surli changed the title test: fix maven launcher test to find path using File separator review test: fix maven launcher test to find path using File separator Jun 28, 2018
@monperrus monperrus merged commit 21cad17 into INRIA:master Jun 28, 2018
@surli surli mentioned this pull request Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants