@Test public void noOpNotPresentTest() throws IOException, XmlPullParserException { PomRemoveManagedDependency uut = new PomRemoveManagedDependency("com.test", "not-present").relative("pom.xml").noOpIfNotPresent(); assertNull(getManagedDependencyBeforeChange(uut)); TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.NO_OP); assertNull(executionResult.getException()); assertEquals(executionResult.getDetails(), MANAGED_DEPENDENCY_NOT_REMOVED_MSG); assertNotChangedFile("pom.xml"); }
@Override public PomRemoveManagedDependency noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; }
PomRemoveManagedDependency extends AbstractArtifactPomOperation<PomRemoveManagedDependency> implements ChangeOrRemoveElement<PomRemoveManagedDependency> { @Override public PomRemoveManagedDependency noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } }
PomRemoveManagedDependency extends AbstractArtifactPomOperation<PomRemoveManagedDependency> implements ChangeOrRemoveElement<PomRemoveManagedDependency> { @Override public PomRemoveManagedDependency noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveManagedDependency();  PomRemoveManagedDependency(String groupId, String artifactId); }
PomRemoveManagedDependency extends AbstractArtifactPomOperation<PomRemoveManagedDependency> implements ChangeOrRemoveElement<PomRemoveManagedDependency> { @Override public PomRemoveManagedDependency noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveManagedDependency();  PomRemoveManagedDependency(String groupId, String artifactId); @Override PomRemoveManagedDependency failIfNotPresent(); @Override PomRemoveManagedDependency warnIfNotPresent(); @Override PomRemoveManagedDependency noOpIfNotPresent(); @Override String getDescription(); }
PomRemoveManagedDependency extends AbstractArtifactPomOperation<PomRemoveManagedDependency> implements ChangeOrRemoveElement<PomRemoveManagedDependency> { @Override public PomRemoveManagedDependency noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveManagedDependency();  PomRemoveManagedDependency(String groupId, String artifactId); @Override PomRemoveManagedDependency failIfNotPresent(); @Override PomRemoveManagedDependency warnIfNotPresent(); @Override PomRemoveManagedDependency noOpIfNotPresent(); @Override String getDescription();  }