@Test public void testGetDependencySnippet() { for (int i = 0; i < formattedWheels.size(); ++i) { assertThat(formattedWheels.get(i)).isEqualTo(wheelArtifactcoordinates.get(i)); } }
@Override public String getDependencySnippet(ArtifactCoordinates inputCoordinates) { PypiArtifactCoordinates coordinates = (PypiArtifactCoordinates) inputCoordinates; String sb = coordinates.getId(); if (!"version".equals(coordinates.getVersion())) { sb += " == " + coordinates.getVersion(); } return sb; }
PypiDependencyFormatter implements DependencySynonymFormatter { @Override public String getDependencySnippet(ArtifactCoordinates inputCoordinates) { PypiArtifactCoordinates coordinates = (PypiArtifactCoordinates) inputCoordinates; String sb = coordinates.getId(); if (!"version".equals(coordinates.getVersion())) { sb += " == " + coordinates.getVersion(); } return sb; } }
PypiDependencyFormatter implements DependencySynonymFormatter { @Override public String getDependencySnippet(ArtifactCoordinates inputCoordinates) { PypiArtifactCoordinates coordinates = (PypiArtifactCoordinates) inputCoordinates; String sb = coordinates.getId(); if (!"version".equals(coordinates.getVersion())) { sb += " == " + coordinates.getVersion(); } return sb; }  }
PypiDependencyFormatter implements DependencySynonymFormatter { @Override public String getDependencySnippet(ArtifactCoordinates inputCoordinates) { PypiArtifactCoordinates coordinates = (PypiArtifactCoordinates) inputCoordinates; String sb = coordinates.getId(); if (!"version".equals(coordinates.getVersion())) { sb += " == " + coordinates.getVersion(); } return sb; }  @PostConstruct @Override void register(); @Override String getLayout(); @Override String getFormatAlias(); @Override String getDependencySnippet(ArtifactCoordinates inputCoordinates); }
PypiDependencyFormatter implements DependencySynonymFormatter { @Override public String getDependencySnippet(ArtifactCoordinates inputCoordinates) { PypiArtifactCoordinates coordinates = (PypiArtifactCoordinates) inputCoordinates; String sb = coordinates.getId(); if (!"version".equals(coordinates.getVersion())) { sb += " == " + coordinates.getVersion(); } return sb; }  @PostConstruct @Override void register(); @Override String getLayout(); @Override String getFormatAlias(); @Override String getDependencySnippet(ArtifactCoordinates inputCoordinates);  }