diagnostics and a possible fix for PathMacroManagerTest

This commit is contained in:
peter
2015-01-14 19:00:58 +01:00
parent 942f7da73d
commit f6072a5836
@@ -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));
}
}