@Test public void spaces_are_reduced() { String source = "apiVersion: v1\nkind: Pod\nmetadata:\n name: busybox-sleep"; String expected = "apiVersion: v1\nkind: Pod\nmetadata:\n name: busybox-sleep"; String result = formatterToTest.format(source); assertEquals(expected,result); }
public String format(String source) { return format(source, null); }
YamlSourceFormatter { public String format(String source) { return format(source, null); } }
YamlSourceFormatter { public String format(String source) { return format(source, null); }  }
YamlSourceFormatter { public String format(String source) { return format(source, null); }  String format(String source); String format(String source, YamlSourceFormatterConfig config); }
YamlSourceFormatter { public String format(String source) { return format(source, null); }  String format(String source); String format(String source, YamlSourceFormatterConfig config);  }