Skip to content

Commit d57fe28

Browse files
committed
Fix test under Windows
1 parent c969be5 commit d57fe28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/properties/ProjectPropertiesModelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ public void testProjectClasspath() throws Exception {
687687

688688
// own project's output folder
689689
Assert.assertTrue(classpath.remove(
690-
this.testProject.getLocation().toFile().getAbsoluteFile() + "/bin"));
690+
new File(this.testProject.getLocation().toFile().getAbsoluteFile(), "bin").toString()));
691691
// output folder of other project 2 (project dependency)
692692
Assert.assertTrue(classpath.remove(
693-
otherProject2.getLocation().toFile().getAbsoluteFile() + "/bin"));
693+
new File(otherProject2.getLocation().toFile().getAbsoluteFile(), "bin").toString()));
694694
// sample-lib1.jar stored in OtherProject
695695
Assert.assertTrue(classpath.remove(realSampleLib1.toString()));
696696
// sample-lib2.jar referenced with absolute path

0 commit comments

Comments
 (0)