SettingsPathTool { public static Path obtainSettingsFilePath(final String filename) { if (SystemUtils.IS_OS_WINDOWS && StringUtils.isNotBlank(getWindowsAppHome())) { return Paths.get(getWindowsAppHome(), VOCAB_HUNTER, filename); } else if (SystemUtils.IS_OS_MAC_OSX) { return Paths.get(getUserHome(), "Library", VOCAB_HUNTER, filename); } else { return Paths.get(getUserHome(), ".VocabHunter", filename); } } private  SettingsPathTool(); static Path obtainSettingsFilePath(final String filename);  }
@Test public void testObtainSettingsFilePath() { Path path = SettingsPathTool.obtainSettingsFilePath("test.txt"); LOG.info("Settings file path {}", path); Assertions.assertNotNull(path, "Settings file path"); }