PomRemoveManagedDependency extends AbstractArtifactPomOperation<PomRemoveManagedDependency> implements ChangeOrRemoveElement<PomRemoveManagedDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); } PomRemoveManagedDependency();  PomRemoveManagedDependency(String groupId, String artifactId); @Override PomRemoveManagedDependency failIfNotPresent(); @Override PomRemoveManagedDependency warnIfNotPresent(); @Override PomRemoveManagedDependency noOpIfNotPresent(); @Override String getDescription();  }
@Test public void miscTest() { PomRemoveManagedDependency pomRemoveManagedDependency = new PomRemoveManagedDependency("junit", "junit").relative("pom.xml"); assertEquals(pomRemoveManagedDependency.getDescription(), "Remove managed dependency junit:junit from POM file pom.xml"); assertEquals(pomRemoveManagedDependency.clone(), pomRemoveManagedDependency); }
@Test public void getDescriptionTest() { PomRemoveManagedDependency uut = new PomRemoveManagedDependency("org.testng", "testng").relative("pom.xml"); String description = uut.getDescription(); assertEquals(description, "Remove managed dependency org.testng:testng from POM file pom.xml"); }