@Test public void testLoadWithConfigFromFileInLogDirPath() { ToolOptions options = ToolOptions.builder().withPath(CONFIG_FILE_DIR).build(); EcLogYamlConfig config = EcLogYamlConfigLoader.load(options); assertCustomConfig(config); }
public static EcLogYamlConfig load(ToolOptions options) { return getConfigFileLocations(options).stream() .filter(Files::isReadable) .map(EcLogYamlConfigLoader::loadConfigFromUrl) .findFirst() .orElse(DEFAULT_CONFIG); }
EcLogYamlConfigLoader { public static EcLogYamlConfig load(ToolOptions options) { return getConfigFileLocations(options).stream() .filter(Files::isReadable) .map(EcLogYamlConfigLoader::loadConfigFromUrl) .findFirst() .orElse(DEFAULT_CONFIG); } }
EcLogYamlConfigLoader { public static EcLogYamlConfig load(ToolOptions options) { return getConfigFileLocations(options).stream() .filter(Files::isReadable) .map(EcLogYamlConfigLoader::loadConfigFromUrl) .findFirst() .orElse(DEFAULT_CONFIG); } private  EcLogYamlConfigLoader(); }
EcLogYamlConfigLoader { public static EcLogYamlConfig load(ToolOptions options) { return getConfigFileLocations(options).stream() .filter(Files::isReadable) .map(EcLogYamlConfigLoader::loadConfigFromUrl) .findFirst() .orElse(DEFAULT_CONFIG); } private  EcLogYamlConfigLoader(); static EcLogYamlConfig load(ToolOptions options); }
EcLogYamlConfigLoader { public static EcLogYamlConfig load(ToolOptions options) { return getConfigFileLocations(options).stream() .filter(Files::isReadable) .map(EcLogYamlConfigLoader::loadConfigFromUrl) .findFirst() .orElse(DEFAULT_CONFIG); } private  EcLogYamlConfigLoader(); static EcLogYamlConfig load(ToolOptions options);  }