@Test public void getDescriptionTest() throws IOException, XmlPullParserException { PomAddDependency uut = new PomAddDependency("org.testng", "testng", "1.1").relative("pom.xml"); String description = uut.getDescription(); Assert.assertEquals(description, "Add dependency org.testng:testng:1.1 to POM file pom.xml"); }
@Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, version, getRelativePath()); }
PomAddDependency extends AbstractArtifactPomOperation<PomAddDependency> implements AddElement<PomAddDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, version, getRelativePath()); } }
PomAddDependency extends AbstractArtifactPomOperation<PomAddDependency> implements AddElement<PomAddDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, version, getRelativePath()); } PomAddDependency();  PomAddDependency(String groupId, String artifactId);  PomAddDependency(String groupId, String artifactId, String version);  PomAddDependency(String groupId, String artifactId, String version, String scope); }
PomAddDependency extends AbstractArtifactPomOperation<PomAddDependency> implements AddElement<PomAddDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, version, getRelativePath()); } PomAddDependency();  PomAddDependency(String groupId, String artifactId);  PomAddDependency(String groupId, String artifactId, String version);  PomAddDependency(String groupId, String artifactId, String version, String scope); PomAddDependency setVersion(String version); PomAddDependency setScope(String scope); @Override PomAddDependency failIfPresent(); @Override PomAddDependency warnNotAddIfPresent(); @Override PomAddDependency warnButAddIfPresent(); @Override PomAddDependency noOpIfPresent(); @Override PomAddDependency overwriteIfPresent(); String getVersion(); String getScope(); @Override String getDescription(); }
PomAddDependency extends AbstractArtifactPomOperation<PomAddDependency> implements AddElement<PomAddDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, version, getRelativePath()); } PomAddDependency();  PomAddDependency(String groupId, String artifactId);  PomAddDependency(String groupId, String artifactId, String version);  PomAddDependency(String groupId, String artifactId, String version, String scope); PomAddDependency setVersion(String version); PomAddDependency setScope(String scope); @Override PomAddDependency failIfPresent(); @Override PomAddDependency warnNotAddIfPresent(); @Override PomAddDependency warnButAddIfPresent(); @Override PomAddDependency noOpIfPresent(); @Override PomAddDependency overwriteIfPresent(); String getVersion(); String getScope(); @Override String getDescription();  }