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