PomChangeDependency extends AbstractArtifactPomOperation<PomChangeDependency> implements ChangeOrRemoveElement<PomChangeDependency> { public String getType() { return type; } 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 defaultNotPresentTest() throws IOException, XmlPullParserException { PomChangeDependency uut = new PomChangeDependency("com.paypal", "not-present").relative("pom.xml"); TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR); assertNotNull(executionResult.getException()); assertEquals(executionResult.getException().getClass(), TransformationOperationException.class); assertNotChangedFile("pom.xml"); }