mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics and a possible fix for PathMacroManagerTest
This commit is contained in:
+2
-2
@@ -52,7 +52,7 @@ import static org.junit.Assert.assertEquals;
|
||||
@RunWith(JMock.class)
|
||||
public class PathMacroManagerTest {
|
||||
private static final String APP_HOME = FileUtil.toSystemIndependentName(PathManager.getHomePath());
|
||||
private static final String USER_HOME = FileUtil.toSystemIndependentName(StringUtil.trimEnd(SystemProperties.getUserHome(), "/"));
|
||||
private static final String USER_HOME = StringUtil.trimEnd(FileUtil.toSystemIndependentName(SystemProperties.getUserHome()), "/");
|
||||
|
||||
private Module myModule;
|
||||
private ProjectEx myProject;
|
||||
@@ -213,7 +213,7 @@ public class PathMacroManagerTest {
|
||||
String[] split = s.split(" -> ");
|
||||
String path = split[0];
|
||||
String replaced = split[1];
|
||||
assertEquals(replaced, map.substitute(path, true));
|
||||
assertEquals("For " + path, replaced, map.substitute(path, true));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user