YamlConfiguration implements Configuration { @Override public String toString() { try { return yaml.formatted(); } catch (Exception e) { return "Unable to read " + yaml.toString(); } } YamlConfiguration(Yaml yaml);  YamlConfiguration();  YamlConfiguration(File file);  YamlConfiguration(String yaml);  YamlConfiguration(Class<?> clazz, String resourcePath);  YamlConfiguration(InputStream inputStream); @Override @SuppressWarnings("unchecked") List<T> getAsList(String path); @Override List<Map<String, Object>> getAsListOfMaps(String path); @Override Optional<T> get(Class<T> clazz, String path); @Override Optional<T> getFirst(Class<T> clazz, String... paths); @Override T get(Class<T> clazz, String path, T defaultValue); @Override String toString(); @Override String originalConfig(); static final char SEP; }
@Test public void testCleanTabs() throws IOException { assertEquals( "test: \"Hello\\tWorld!\"\n" + "testing:\n" + "- 1.. 2.. 3.. 4..\n", new YamlConfiguration("\t\ttest: Hello\tWorld!\n\t\ttesting:\n\t\t- 1.. 2.. 3.. 4.. ") .toString()); }