PomChangePlugin extends AbstractArtifactPomOperation<PomChangePlugin> implements ChangeOrRemoveElement<PomChangePlugin> { public PomChangePlugin removeExecutions() { removeExecutions = true; return this; } PomChangePlugin();  PomChangePlugin(String groupId, String artifactId); PomChangePlugin setVersion(String version); PomChangePlugin setExtensions(String extensions); PomChangePlugin setExecutions(List<PluginExecution> executions); PomChangePlugin setPluginDependencies(List<Dependency> pluginDependencies); PomChangePlugin removeVersion(); PomChangePlugin removeExtensions(); PomChangePlugin removeExecutions(); PomChangePlugin removeDependencies(); @Override PomChangePlugin failIfNotPresent(); @Override PomChangePlugin warnIfNotPresent(); @Override PomChangePlugin noOpIfNotPresent(); String getVersion(); String getExtensions(); List<PluginExecution> getExecutions(); List<Dependency> getPluginDependencies(); boolean isRemoveVersion(); boolean isRemoveExtensions(); boolean isRemoveExecutions(); boolean isRemovePluginDependencies(); @Override String getDescription();  }
@Test public void removeExecutionsTest() throws IOException, XmlPullParserException { PomChangePlugin uut = new PomChangePlugin("org.codehaus.mojo", "build-helper-maven-plugin").relative("pom.xml").removeExecutions(); assertFalse(getPluginBeforeChange(uut).getExecutions().isEmpty()); assertTrue(uut.isRemoveExecutions()); executeAndAssertSuccess(uut); assertTrue(getPluginAfterChange(uut).getExecutions().isEmpty()); }