@Test public void convertIncrementals() { List<Plugin> originalPlugins = singletonList(plugin("workflow-support", "2.19-rc289.d09828a05a74", "org.jenkins-ci.plugins.workflow")); List<Plugin> latestVersionsOfPlugins = pm.getLatestVersionsOfPlugins(originalPlugins); String converted = new TxtOutputConverter().convert(latestVersionsOfPlugins); assertThat(converted) .isEqualTo("workflow-support:incrementals;org.jenkins-ci.plugins.workflow;2.19-rc289.d09828a05a74"); }
@Override public String convert(List<Plugin> plugins) { return plugins.stream() .map(this::mapPluginToTxtFormat) .collect(Collectors.joining(System.lineSeparator())); }
TxtOutputConverter implements PluginOutputConverter { @Override public String convert(List<Plugin> plugins) { return plugins.stream() .map(this::mapPluginToTxtFormat) .collect(Collectors.joining(System.lineSeparator())); } }
TxtOutputConverter implements PluginOutputConverter { @Override public String convert(List<Plugin> plugins) { return plugins.stream() .map(this::mapPluginToTxtFormat) .collect(Collectors.joining(System.lineSeparator())); }  }
TxtOutputConverter implements PluginOutputConverter { @Override public String convert(List<Plugin> plugins) { return plugins.stream() .map(this::mapPluginToTxtFormat) .collect(Collectors.joining(System.lineSeparator())); }  @Override String convert(List<Plugin> plugins); }
TxtOutputConverter implements PluginOutputConverter { @Override public String convert(List<Plugin> plugins) { return plugins.stream() .map(this::mapPluginToTxtFormat) .collect(Collectors.joining(System.lineSeparator())); }  @Override String convert(List<Plugin> plugins);  }