@Test void loadAndSaveLoadsConfiguration() { new TestClass(configPath, TestClass.TEST_VALUES).save(); YamlConfiguration configuration = new TestClass(configPath); configuration.loadAndSave(); assertThat(configuration, is(TestClass.TEST_VALUES)); assertThat(Files.exists(configPath), is(true)); }
public final void loadAndSave() { try { load(); save(); } catch (ConfigurationStoreException e) { if (e.getCause() instanceof NoSuchFileException) { postLoad(); save(); } else { throw e; } } }
YamlConfiguration extends Configuration<YamlConfiguration> { public final void loadAndSave() { try { load(); save(); } catch (ConfigurationStoreException e) { if (e.getCause() instanceof NoSuchFileException) { postLoad(); save(); } else { throw e; } } } }
YamlConfiguration extends Configuration<YamlConfiguration> { public final void loadAndSave() { try { load(); save(); } catch (ConfigurationStoreException e) { if (e.getCause() instanceof NoSuchFileException) { postLoad(); save(); } else { throw e; } } } protected  YamlConfiguration(Path path, YamlProperties properties); protected  YamlConfiguration(Path path); }
YamlConfiguration extends Configuration<YamlConfiguration> { public final void loadAndSave() { try { load(); save(); } catch (ConfigurationStoreException e) { if (e.getCause() instanceof NoSuchFileException) { postLoad(); save(); } else { throw e; } } } protected  YamlConfiguration(Path path, YamlProperties properties); protected  YamlConfiguration(Path path); final void loadAndSave(); }
YamlConfiguration extends Configuration<YamlConfiguration> { public final void loadAndSave() { try { load(); save(); } catch (ConfigurationStoreException e) { if (e.getCause() instanceof NoSuchFileException) { postLoad(); save(); } else { throw e; } } } protected  YamlConfiguration(Path path, YamlProperties properties); protected  YamlConfiguration(Path path); final void loadAndSave();  }