@Test public void getDescriptionTest() throws IOException, XmlPullParserException { PomChangeDependency uut = new PomChangeDependency("org.testng", "testng").relative("pom.xml"); String description = uut.getDescription(); assertEquals(description, "Change dependency org.testng:testng in POM file pom.xml"); }
@Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); }
PomChangeDependency extends AbstractArtifactPomOperation<PomChangeDependency> implements ChangeOrRemoveElement<PomChangeDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); } }
PomChangeDependency extends AbstractArtifactPomOperation<PomChangeDependency> implements ChangeOrRemoveElement<PomChangeDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); } PomChangeDependency();  PomChangeDependency(String groupId, String artifactId); }
PomChangeDependency extends AbstractArtifactPomOperation<PomChangeDependency> implements ChangeOrRemoveElement<PomChangeDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); } PomChangeDependency();  PomChangeDependency(String groupId, String artifactId); PomChangeDependency setVersion(String version); PomChangeDependency setScope(String scope); PomChangeDependency setType(String type); PomChangeDependency setOptional(); PomChangeDependency removeVersion(); PomChangeDependency removeScope(); PomChangeDependency removeType(); PomChangeDependency removeOptional(); PomChangeDependency failIfNotPresent(); PomChangeDependency warnIfNotPresent(); PomChangeDependency noOpIfNotPresent(); String getVersion(); String getScope(); String getType(); Boolean isOptional(); boolean isRemoveVersion(); boolean isRemoveScope(); boolean isRemoveType(); boolean isRemoveOptional(); @Override String getDescription(); }
PomChangeDependency extends AbstractArtifactPomOperation<PomChangeDependency> implements ChangeOrRemoveElement<PomChangeDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); } PomChangeDependency();  PomChangeDependency(String groupId, String artifactId); PomChangeDependency setVersion(String version); PomChangeDependency setScope(String scope); PomChangeDependency setType(String type); PomChangeDependency setOptional(); PomChangeDependency removeVersion(); PomChangeDependency removeScope(); PomChangeDependency removeType(); PomChangeDependency removeOptional(); PomChangeDependency failIfNotPresent(); PomChangeDependency warnIfNotPresent(); PomChangeDependency noOpIfNotPresent(); String getVersion(); String getScope(); String getType(); Boolean isOptional(); boolean isRemoveVersion(); boolean isRemoveScope(); boolean isRemoveType(); boolean isRemoveOptional(); @Override String getDescription();  }