Пример #1
0
  @Test
  public void testSave_String() throws Exception {
    FileConfiguration config = getConfig();
    File file = testFolder.newFile("test.config");

    for (Map.Entry<String, Object> entry : getTestValues().entrySet()) {
      config.set(entry.getKey(), entry.getValue());
    }

    config.save(file.getAbsolutePath());

    assertTrue(file.isFile());
  }