TableFormatterConfig { public static TableFormatterConfig load() { return load(PlatformConfig.defaultConfig()); } TableFormatterConfig(Locale locale, char csvSeparator, String invalidString, boolean printHeader, boolean printTitle);  TableFormatterConfig(Locale locale, String invalidString, boolean printHeader, boolean printTitle);  TableFormatterConfig(Locale locale, String invalidString);  TableFormatterConfig(); static TableFormatterConfig load(); static TableFormatterConfig load(PlatformConfig platformConfig); Locale getLocale(); char getCsvSeparator(); String getInvalidString(); boolean getPrintHeader(); boolean getPrintTitle(); @Override String toString();  }
@Test public void testConfig() throws IOException { TableFormatterConfig config = new TableFormatterConfig(); testConfig(config, Locale.getDefault(), ';', "inv", true, true); try (FileSystem fileSystem = Jimfs.newFileSystem(Configuration.unix())) { InMemoryPlatformConfig platformConfig = new InMemoryPlatformConfig(fileSystem); MapModuleConfig moduleConfig = platformConfig.createModuleConfig("table-formatter"); moduleConfig.setStringProperty("language", "en-US"); moduleConfig.setStringProperty("separator", "\t"); moduleConfig.setStringProperty("invalid-string", "NaN"); moduleConfig.setStringProperty("print-header", "false"); moduleConfig.setStringProperty("print-title", "false"); config = TableFormatterConfig.load(platformConfig); testConfig(config, Locale.US, '\t', "NaN", false, false); } }