void (String[] expectedPaths, List<String> actualPaths) { List<String> normalizedActualPaths = new ArrayList<>(); List<String> normalizedExpectedPaths = new ArrayList<>(); for (String each : actualPaths) { normalizedActualPaths.add(FileUtil.toSystemDependentName(each)); } for (String each : expectedPaths) { normalizedExpectedPaths.add(FileUtil.toSystemDependentName(each)); } assertOrderedElementsAreEqual(normalizedActualPaths, normalizedExpectedPaths); }