PomRemoveDependency extends AbstractArtifactPomOperation<PomRemoveDependency> implements ChangeOrRemoveElement<PomRemoveDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, getRelativePath()); } PomRemoveDependency();  PomRemoveDependency(String groupId, String artifactId); @Override PomRemoveDependency failIfNotPresent(); @Override PomRemoveDependency warnIfNotPresent(); @Override PomRemoveDependency noOpIfNotPresent(); @Override String getDescription(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void miscTest() { PomRemoveDependency pomRemoveDependency = new PomRemoveDependency("org.springframework.boot", "spring-boot-dependencies").relative("pom.xml"); assertEquals(pomRemoveDependency.getDescription(), "Remove dependency org.springframework.boot:spring-boot-dependencies from POM file pom.xml"); assertEquals(pomRemoveDependency.clone(), pomRemoveDependency); }
@Test public void getDescriptionTest() { PomRemoveDependency uut = new PomRemoveDependency("org.testng", "testng").relative("pom.xml"); String description = uut.getDescription(); assertEquals(description, "Remove dependency org.testng:testng from POM file pom.xml"); }