@Test(dataProvider = "windowsPaths") public void testWindowsPaths(String path) throws Exception { assertNotNull(SakuliFolderHelper.normalizePath(path)); }
public static Path normalizePath(String path) { String oldPath = path; for (char c : Arrays.asList('\'', '\"')) { path = StringUtils.remove(path, c); } if (!StringUtils.equals(oldPath, path)) { LOGGER.debug("Path [{}] modified to [{}]", oldPath, path); } return path == null ? null : Paths.get(path).toAbsolutePath().normalize(); }
SakuliFolderHelper { public static Path normalizePath(String path) { String oldPath = path; for (char c : Arrays.asList('\'', '\"')) { path = StringUtils.remove(path, c); } if (!StringUtils.equals(oldPath, path)) { LOGGER.debug("Path [{}] modified to [{}]", oldPath, path); } return path == null ? null : Paths.get(path).toAbsolutePath().normalize(); } }
SakuliFolderHelper { public static Path normalizePath(String path) { String oldPath = path; for (char c : Arrays.asList('\'', '\"')) { path = StringUtils.remove(path, c); } if (!StringUtils.equals(oldPath, path)) { LOGGER.debug("Path [{}] modified to [{}]", oldPath, path); } return path == null ? null : Paths.get(path).toAbsolutePath().normalize(); }  }
SakuliFolderHelper { public static Path normalizePath(String path) { String oldPath = path; for (char c : Arrays.asList('\'', '\"')) { path = StringUtils.remove(path, c); } if (!StringUtils.equals(oldPath, path)) { LOGGER.debug("Path [{}] modified to [{}]", oldPath, path); } return path == null ? null : Paths.get(path).toAbsolutePath().normalize(); }  static String checkTestSuiteFolderAndSetContextVariables(String testSuiteFolderPath, String tempLogCache); static Path normalizePath(String path); static String checkSakuliHomeFolderAndSetContextVariables(String sakuliMainFolderPath, String tempLogCache); static String checkSahiProxyHomeAndSetContextVariables(String sahiProxyHomePath, String tempLogCache); static String setTestSuiteBrowserContextVariable(String testSuiteBrowserName, String tempLogCache); }
SakuliFolderHelper { public static Path normalizePath(String path) { String oldPath = path; for (char c : Arrays.asList('\'', '\"')) { path = StringUtils.remove(path, c); } if (!StringUtils.equals(oldPath, path)) { LOGGER.debug("Path [{}] modified to [{}]", oldPath, path); } return path == null ? null : Paths.get(path).toAbsolutePath().normalize(); }  static String checkTestSuiteFolderAndSetContextVariables(String testSuiteFolderPath, String tempLogCache); static Path normalizePath(String path); static String checkSakuliHomeFolderAndSetContextVariables(String sakuliMainFolderPath, String tempLogCache); static String checkSahiProxyHomeAndSetContextVariables(String sahiProxyHomePath, String tempLogCache); static String setTestSuiteBrowserContextVariable(String testSuiteBrowserName, String tempLogCache);  }