Skip to content

Commit

Permalink
test: fix MavenLauncherTest to find paths using File separator (#2129)
Browse files Browse the repository at this point in the history
  • Loading branch information
surli authored and monperrus committed Jun 28, 2018
1 parent 45c7017 commit 21cad17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/spoon/MavenLauncherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

import java.io.File;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;

Expand Down Expand Up @@ -63,7 +65,8 @@ public void mavenLauncherTestMultiModulesAndVariables() {
List<String> classpath = Arrays.asList(launcher.getEnvironment().getSourceClasspath());
// in order to work on CI, make sure the version is the same in Spoon pom.xml
// else, we cannot guarantee that the dependency is present in .m2 cache and the test might fail
String lookingFor = "junit/junit/4.12/junit-4.12.jar";

String lookingFor = Paths.get("junit","junit", "4.12", "junit-4.12.jar").toString();

boolean findIt = false;
for (String s : classpath) {
Expand Down

0 comments on commit 21cad17

Please sign in to comment.