@Test public void propertyNotPresentNoOpTest() throws IOException { PomRemoveProperty pomRemoveProperty = new PomRemoveProperty("zoo").relative("pom.xml").noOpIfNotPresent(); TOExecutionResult executionResult = pomRemoveProperty.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.NO_OP); assertNull(executionResult.getException()); assertEquals(executionResult.getDetails(), "Property zoo has not been removed from POM file /pom.xml because it is not present"); assertNotChangedFile("pom.xml"); }
@Override public PomRemoveProperty noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; }
PomRemoveProperty extends AbstractPomOperation<PomRemoveProperty> implements ChangeOrRemoveElement<PomRemoveProperty> { @Override public PomRemoveProperty noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } }
PomRemoveProperty extends AbstractPomOperation<PomRemoveProperty> implements ChangeOrRemoveElement<PomRemoveProperty> { @Override public PomRemoveProperty noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveProperty();  PomRemoveProperty(String propertyName); }
PomRemoveProperty extends AbstractPomOperation<PomRemoveProperty> implements ChangeOrRemoveElement<PomRemoveProperty> { @Override public PomRemoveProperty noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveProperty();  PomRemoveProperty(String propertyName); PomRemoveProperty setPropertyName(String propertyName); @Override PomRemoveProperty failIfNotPresent(); @Override PomRemoveProperty warnIfNotPresent(); @Override PomRemoveProperty noOpIfNotPresent(); String getPropertyName(); @Override String getDescription(); }
PomRemoveProperty extends AbstractPomOperation<PomRemoveProperty> implements ChangeOrRemoveElement<PomRemoveProperty> { @Override public PomRemoveProperty noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveProperty();  PomRemoveProperty(String propertyName); PomRemoveProperty setPropertyName(String propertyName); @Override PomRemoveProperty failIfNotPresent(); @Override PomRemoveProperty warnIfNotPresent(); @Override PomRemoveProperty noOpIfNotPresent(); String getPropertyName(); @Override String getDescription();  }