use of de.unijena.cheminf.mortar.model.fragmentation.algorithm.ErtlFunctionalGroupsFinderFragmenter in project MORTAR by FelixBaensch.
the class PreferenceContainerTest method testPropertyToPreferenceConversion.
@Test
public void testPropertyToPreferenceConversion() throws Exception {
Locale.setDefault(new Locale("en", "GB"));
SugarRemovalUtilityFragmenter tmpSRUFragmenter = new SugarRemovalUtilityFragmenter();
String tmpDir = FileUtil.getAppDirPath() + File.separatorChar + "Test" + File.separatorChar;
(new File(tmpDir)).mkdirs();
String tmpFilePathname = tmpDir + "SRUFragmenterSettings.txt";
PreferenceContainer tmpContainer = PreferenceUtil.translateJavaFxPropertiesToPreferences(tmpSRUFragmenter.settingsProperties(), tmpFilePathname);
tmpContainer.writeRepresentation();
tmpContainer = PreferenceUtil.translateJavaFxPropertiesToPreferences(new ErtlFunctionalGroupsFinderFragmenter().settingsProperties(), tmpDir + "EFGFFragmenterSettings.txt");
tmpContainer.writeRepresentation();
tmpContainer = PreferenceUtil.translateJavaFxPropertiesToPreferences(new SettingsContainer().settingsProperties(), tmpDir + "SettingContainer.txt");
tmpContainer.writeRepresentation();
}
Aggregations