@Test public void testGenerateYamlConfig() { Configuration defaults = new PropertiesConfiguration(); defaults.addProperty("cloud.aws.id", "a"); defaults.addProperty("cloud.aws.key", "b"); defaults.addProperty("index.store.type", "memory"); String content = StringUtils.join( ElasticSearchConfigurationBuilder.asYamlLines(defaults), "\n"); assertThat(content, is("cloud:\n" + " aws:\n" + " id: a\n" + " key: b\n" + "index:\n" + " store:\n" + " type: memory")); }
@VisibleForTesting public static List<String> asYamlLines(Configuration config) { return asYamlLines(config, 0); }
ElasticSearchConfigurationBuilder { @VisibleForTesting public static List<String> asYamlLines(Configuration config) { return asYamlLines(config, 0); } }
ElasticSearchConfigurationBuilder { @VisibleForTesting public static List<String> asYamlLines(Configuration config) { return asYamlLines(config, 0); }  }
ElasticSearchConfigurationBuilder { @VisibleForTesting public static List<String> asYamlLines(Configuration config) { return asYamlLines(config, 0); }  static Statement build(String path, Configuration config); static Statement build(String path, ClusterSpec spec, Cluster cluster); static Configuration buildConfig(ClusterSpec spec, Cluster cluster); @VisibleForTesting static List<String> asYamlLines(Configuration config); }
ElasticSearchConfigurationBuilder { @VisibleForTesting public static List<String> asYamlLines(Configuration config) { return asYamlLines(config, 0); }  static Statement build(String path, Configuration config); static Statement build(String path, ClusterSpec spec, Cluster cluster); static Configuration buildConfig(ClusterSpec spec, Cluster cluster); @VisibleForTesting static List<String> asYamlLines(Configuration config); static final String ES_PREFIX; }