PomChangeDependency extends AbstractArtifactPomOperation<PomChangeDependency> implements ChangeOrRemoveElement<PomChangeDependency> { public PomChangeDependency removeType() { removeType = true; return this; } 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();  }
@Test public void removeTypeTest() throws IOException, XmlPullParserException { PomChangeDependency uut = new PomChangeDependency("org.springframework.boot", "spring-boot-dependencies").relative("pom.xml").removeType(); assertEquals(getDependencyBeforeChange(uut).getType(), "pom"); executeAndAssertSuccess(uut); assertEquals(getDependencyAfterChange(uut).getType(), "jar"); }