@Test public void removeVersionTest() throws IOException, XmlPullParserException { PomChangePlugin uut = new PomChangePlugin("org.codehaus.mojo", "cobertura-maven-plugin").relative("pom.xml").removeVersion(); assertEquals(getPluginBeforeChange(uut).getVersion(), "2.7"); assertTrue(uut.isRemoveVersion()); executeAndAssertSuccess(uut); assertNull(getPluginAfterChange(uut).getVersion()); }
public PomChangePlugin removeVersion() { removeVersion = true; return this; }
PomChangePlugin extends AbstractArtifactPomOperation<PomChangePlugin> implements ChangeOrRemoveElement<PomChangePlugin> { public PomChangePlugin removeVersion() { removeVersion = true; return this; } }
PomChangePlugin extends AbstractArtifactPomOperation<PomChangePlugin> implements ChangeOrRemoveElement<PomChangePlugin> { public PomChangePlugin removeVersion() { removeVersion = true; return this; } PomChangePlugin();  PomChangePlugin(String groupId, String artifactId); }
PomChangePlugin extends AbstractArtifactPomOperation<PomChangePlugin> implements ChangeOrRemoveElement<PomChangePlugin> { public PomChangePlugin removeVersion() { removeVersion = 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(); }
PomChangePlugin extends AbstractArtifactPomOperation<PomChangePlugin> implements ChangeOrRemoveElement<PomChangePlugin> { public PomChangePlugin removeVersion() { removeVersion = 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();  }